jeremyhoward14 / eportfolio

Express.js Back-end for the CircleSpace ePortfolio platform.
0 stars 0 forks source link

CircleSpace ePortfolio Back-end

This repository hosts the back-end API for the CircleSpace ePortfolio Management System.

Installation

Usage

Local Deployment

Use 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.

Web Deployment

Two Heroku servers are configured to run the server:

Documentation

Full documentation can be found via the README in the docs/ folder.

Testing

The repository runs tests with the Mocha and Chai libraries.

Local Testing

Tests can be run from a local deployment using npm test. To run only specific tests, commands in the following styles can be used:

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 Testing

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.