0.1.4 • Published 2 years ago
chatbot-server-mongodb-public v0.1.4
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 devBy 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 testLinting & Formatting
We use eslint for linting and prettier for formatting.
To lint the code and find any warnings or errors, run:
npm run lintTo format the code, run:
npm run format0.1.4
2 years ago