API and testing logics for #TimelineTerminationBan
Based on https://github.com/danielfsousa/express-rest-es2017-boilerplate/
- Node v7.6+ or Docker
npm i
cp .env.example .env
npm run dev
npm run start
# lint code with ESLint
npm run lint
# try to fix ESLint errors
npm run lint:fix
# lint and watch for changes
npm run lint:watch
# run all tests with Mocha
npm run test
# run unit tests
npm run test:unit
# run integration tests
npm run test:integration
# run all tests and watch for changes
npm run test:watch
# open nyc test coverage reports
npm run coverage
# run lint and tests
npm run validate
# show logs in production
pm2 logs
# generate and open api documentation
npm run docs
# run container locally
npm run docker:dev
# run container in production
npm run docker:prod
# run tests
npm run docker:test