The backend server for Chasm Master. Built with Node.js and Typescript, this server mediates MongoDB database and OpenAI API access via a RESTful API.
To run the server locally, do the following:
- Add a value to the
MONGODB_CONN_URLenv variable indocker-compose.services.ymlso you can connect to a database deployment. This can be the one you'll spin up locally or another one. - Run a Docker daemon like Colima.
- Navigate to the project directory and run
docker compose up --build. The local server will be reachable at your localhost on port 8000 or whatever you set as your$PORTenv variable.
The server image (on Google Cloud Artifact Registry) is automatically updated and redeployed when you merge a PR onto main.