This is a template project which integrates Yeoman and NodeJS+ExpressJS together.
- Clone the repository
- Open a terminal window, go to the cloned directory and run
npm install
- Go to the 'client' folder and run
npm install && bower install
. - Still in the 'client' folder runs
grunt server
If you want to run the tests, use grunt test
inside the 'client' folder.
If you want to generate a distribution for your app, runs the grunt build
inside the 'client' folder.srm
ExpressJS uses a environment variable called NODE_ENV to control which enviroment will be loaded. Double check when deploying to your production server to set NODE_ENV variable to 'production' in order to instruct ExpressJS to load the minified and concatenated files.
Also, this template contains a Procfile ready to be used on Heroku. You'll just need to add a remote which points to a valid Heroku project and everything should work.