This project is a TypeScript Agent Manager application where Agents are connected to it through websocket .
-
Clone the repository:
git clone https://github.com/sireto/cardano-autonomous-agent.git cd cardano-autonomous-agent/agent-manager -
Install dependencies using yarn:
yarn install
Copy the env variables form .env.example to .env and update the env variables.
Make sure to run the following command to generate the database client and creating the required table mentioned in schema
yarn prisma generateTo run the application in dev mode run the following command
yarn devTo run the Agent Manager application, follow these steps:
-
Build the application using the following command:
yarn build
This will compile the TypeScript files into JavaScript and place the output in the
distdirectory. -
Run the application with an agent ID as a command-line argument:
yarn start
Make sure your API service is up and running .
If successful a server listening on port 3000 will be running: