#grunt-init-crema
Create a Node.js web app with grunt-init in which the client and server share JavaScript modules. Generated project contains tests for both and uses grunt and karma to watch and rerun tests on file changes. Build runs tests, jshint, copies files to a build directory and optimizes RequireJS modules.
Once grunt-init is installed, place this template in your ~/.grunt-init/ directory. It's recommended that you use git to clone this template into that directory, as follows:
git clone https://github.com/dave-m-miranda/grunt-init-crema.git ~/.grunt-init/crema
(Windows users, see the documentation for the correct destination directory path)
At the command-line, cd into an empty directory, run this command and follow the prompts.
grunt-init crema
Note that this template will generate files in the current directory, so be sure to change to a new directory first if you don't want to overwrite existing files.
npm install
grunt
karma start
grunt watch
node src/server/app
node build/server/app