0.1.4 • Published 5 months ago

chatbot-server-mongodb-public v0.1.4

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
5 months ago

MongoDB AI Chatbot Server

This is the implementation of mongodb-chatbot-server that powers the MongoDB AI Chatbot.

The project is a Express.js server.

Usage

Installation

This project is dependent on other packages in the monorepo, including mongodb-rag-core and mongodb-chatbot-server. To set up the monorepo, see the Contributor Guide.

.env

Use the .env.example file to help configure a local .env file.

Running

To start the development server, run:

npm run dev

By default, the server should be accessible through http://localhost:3000/.

Testing

Tests are ran by Jest and rely on Supertest for testing Express route logic.

To run tests, use:

npm run test

Linting & Formatting

We use eslint for linting and prettier for formatting.

To lint the code and find any warnings or errors, run:

npm run lint

To format the code, run:

npm run format