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
.envtemplate
file and rename it to.env
. SetMONGO_URI
to the database URI. - Run
yarn
to 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 build
followed byyarn start
. - API documentation can be found in the
/api/docs
route.
- 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.