Sample angular.js + node.js application
- MongoDB - Download and Install MongoDB - If you plan on scaffolding your project with mongoose, you'll need mongoDB to be installed.
Install Dependencies
npm install && bower install
Launch your express server in development mode.
grunt serve
Launch your express server in debug-brk
mode with a node-inspector tab.
grunt serve:debug
Launch your express server in production mode, uses the minified/optimized production folder.
grunt serve:dist
grunt serve
will watch client files in app/
, and server files inside lib/
, restarting the Express server when a change is detected.
To generate a dist folder that can easily be deployed use:
grunt
This will run unit tests, jshint, concatenate and minify scripts/css, compress images, add css vendor prefixes, and finally copy all files to a tidy dist folder.
Alternatively to skip tests and jshint, use:
grunt build