Skip to content

marcosrachid/node-js-es6-rest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-js-es6-rest

node js (ES6 + Babel + mocha + chai + sinnon + jwt) study

Installation

npm i -g yarn
yarn

Execution

Start with the default database configurations

babel-node index.js

or

yarn start

Production Exection

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

Test Execution

We have to

Unit Tests

yarn test:unit

Integration Tests

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

ESLINT Validation

yarn lint