A microservice that does authentication in node.js and express
node version 8.11.1 npm version 5.6.0 port 9000 open
in addition you will need a .env file that is not uploaded to github for security purposes you will also need a authKeys.js file that is not uploaded to github for security purposes
To install dependencies, run npm install
. After you've installed all the
dependencies, you can start running.
npm run start:dev
or simply npm start
npm run start:prod
or simply node index.js
This project uses Istanbul for code coverage with mocha
for the test framework, chai library for assertions.
This will run all tests in the ./src/test
directory.
A coverage report will be generated by running the $ npm test
command and outputted into the build directory.
Open the lcov-report for an overview of your code coverage:
$ open ./coverage/lcov-report/index.html