Backend for L7: Networking II and A3
The database is hosted on MongoDB Atlas. There are two collections:
- posts (A3: ChatDev)
- members (L7: Networking II)
A CI/CD script has been created - simply merge a PR to main to deploy, after all checks have passed. If needed, the SSH key is pinned in our Slack.
- Duplicate the
.envtemplatefile and rename it to.env. SetMONGO_URIto the database URI. - Run
yarnto install dependencies. If you don't have yarn installed, runnpm install --global yarn. - Start the development server by running
yarn dev. To run the production build instead, useyarn buildfollowed byyarn start. - API documentation can be found in the
/api/docsroute.
- Make sure dependencies are installed with
yarn. - To run the test suite, use
yarn test.
- If using VSCode, install the Prettier extension and configure your settings to use it.