The project requires you have mongodb installed, it will use by default port 27017
.
Check out app/configs/dev.json
.
Project dependencies can be installed through:
npm install
To start the app run:
npm start
There are two types of tests, unit and api (e2e). Tests run in a different node port, so server never needs to stop since test will start and shutdown its own required server. Each type of tests generates its own coverage report. When running all tests both coverages will be merged into a single final report. The following commands are used to run tests:
npm run test
// to run all tests
npm run test:ut
// to run unit tests
npm run test:api
// to run api tests
Coverage reports can be found inside test folder:
test/coverage
test/coverage/all-coverage
test/coverage/ut-coverage
test/coverage/api-coverage
The linter runs only when npm run test
command is run.