Nodepeppers is a boilerplate application for my fellows at xpeppers. The tecnologies involved besides nodejs itself are:
- express development framework
- jade template engine with a slick markup
- stylus css preprocessor for linear stylesheets
- forever script execution monitor
- mocha testing framework along with
- should awesome assertion library
Yet to come:
- cluster support for multiple workers
$ git clone https://github.com/ivoputzer/nodepeppers.git <dirname>
$ cd <dirname>
$ npm install
You can start application through npm direcly. Whenever node-dev
is found on the machine, the command is used instead of node
automatically
$ npm start
Once again, you can use npm to launch the entire test suite. This way should
assertion library gets loaded automatically
$ npm test
In order to set the proper application environment you need to assign NODE_ENV
to one of the following values, development
is default.
export NODE_ENV=development
export NODE_ENV=integration
export NODE_ENV=production