This repository hosts the back-end API for the CircleSpace ePortfolio Management System.
npm i
to install the required dependenciesUse npm start
to start the server. Locally, the server is run from localhost:3000
.
To view the Swagger UI for the API, navigate to localhost:3000
or localhost:3000/docs/
.
You can then manually create requests to the server from this UI.
Make sure to wait for the connection message to MongoDB ("MongoDB connection established..."
) to appear before creating requests.
Two Heroku servers are configured to run the server:
master
branch, and is the production deploymentdev
branch. It's used to host the current development environment without making changes to the production API.Full documentation can be found via the README in the docs/
folder.
The repository runs tests with the Mocha
and Chai
libraries.
Tests can be run from a local deployment using npm test
. To run only specific tests, commands in the following styles can be used:
npm test -- -g "bio"
npm test -- -g "bio/update"
The -g
switch indicates a regex match. To invert the match, follow the pattern with --invert
. For more information, visit the Mocha documentation.
CI / CD has been configured using GitHub Actions. On each pull request, the full test suite is run on the repository. The tests can also be run manually through the GitHub site.