This project is a TypeScript client application that connects to a server via WebSocket and processes configurations sent by the server. It can schedule and trigger functions based on received configurations.
-
Clone the repository:
git clone https://github.com/sireto/cardano-autonomous-agent.git cd cardano-autonomous-agent/agent-node
-
Install dependencies using npm or yarn:
yarn install
Copy environment variables from .env.example
to .env
and update them as necessary.
Note: AGENT_ID if the ID of the agent created with API.
To run the application in dev mode run the following command
yarn dev
-
Build the application using the following command:
yarn build
This will compile the TypeScript files into JavaScript and place the output in the
dist
directory. -
Run the application with an agent ID as a command-line argument:
yarn start