Skip to content

Latest commit

 

History

History
72 lines (45 loc) · 1.51 KB

README.md

File metadata and controls

72 lines (45 loc) · 1.51 KB

Agent Manager Application

This project is a TypeScript Agent Manager application where Agents are connected to it through websocket .

Table of Contents

Requirements

Installation

  1. Clone the repository:

    git clone https://github.com/sireto/cardano-autonomous-agent.git
    cd  cardano-autonomous-agent/agent-manager
  2. Install dependencies using yarn:

    yarn install

Usage

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 generate

Development Mode

To run the application in dev mode run the following command

yarn dev

Production Mode

To run the Agent Manager application, follow these steps:

  1. 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.

  2. 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:

http://localhost:3001