Skip to content

UHCodeRED/CodeRED-Fall-App-BE

Repository files navigation

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

Releases

No releases published

Packages

No packages published