node js (ES6 + Babel + mocha + chai + sinnon + jwt) study
npm i -g yarn
yarn
Start with the default database configurations
babel-node index.js
or
yarn start
Necessary to separate between Windows and Unix environment due the environment variables set syntax differences. The set of the environment maps the database configurations that will be used, on this case, the production configurations.
For windows:
yarn start:windows:production
For unix:
yarn start:unix:production
We have to
yarn test:unit
Necessary to separate between Windows and Unix environment due the environment variables set syntax differences. The set of the environment maps the database configurations that will be used, on this case, the test configurations.
For windows:
yarn test:windows:integration
For unix:
yarn test:unix:integration
yarn lint