The Srvice Node/Express.js API
NOTE: the Srvice API is only stable for node versions 12.x
- Make sure you have Node.JS v12+ installed
- $ npm installin api folder
- $ npm run dev
- $ npm test
  test
    nyc --reporter=text-summary mocha src/test/index.js --timeout 10000 --exit
  posttest
    echo Srvice API passed all tests 🎉
  start
    nodemon
e.g $ npm run dev
  coverage
    nyc --reporter=lcov mocha src/test/index.js --timeout 10000 --exit
  build
    pm2 start src/index.js
  lint
    npx eslint src/* --color --quiet
  gen
    node src/mock/CLIGen.js
  prettier
    prettier --config \"./.prettierrc\" --check \"./src/**/*.{ts,json}\"
  autofix  <-- use this to avoid CI errors!!!
    prettier --config "./.prettierrc" "./src/**/*.{ts,json}" --write ; eslint ./src/**/*.ts --color --quiet --fix
e.g $ npm run gen