Skip to content

Latest commit

 

History

History
executable file
·
49 lines (36 loc) · 1.24 KB

README.md

File metadata and controls

executable file
·
49 lines (36 loc) · 1.24 KB

CodeRED-Back-End

This project is generated with express generator

###Prerequisites Make sure you have installed all of the following prerequisites on your development machine:

###Install dependencies Install npm dependencies

$ npm install

=======

###Development Run this command in order to start server.

export MongoDB_DEV='DEV-DATABASE-URL' && export NODE_ENV=development && node server.js

#####OR

go to config/env/development.js and simply set the db variable to desired database. And just run

export NODE_ENV=development && node server.js

=======

###Test Run this command in order to run tests.

export MongoDB_TEST='TEST-DATABASE-URL' && export NODE_ENV=test && mocha 

#####OR

go to config/env/test.js and simply set the db variable to desired database. And just run

export NODE_ENV=test && mocha

=======

###Production Variables that need to be set on cloud provider. MongoDB_PRO, cookieSessionSecret