This is a Jump Off Point for Express 4 Sites
Includes:
- Change the
namein thepackage.json. - Run
npm installto get all dependencies - Run
grunt buildto build your assets - Start the server
- Locally Run
nodemon server.js - Server Run
npm start
- Locally Run
Assets are named by the name value in the package.json file.
CoffeeScript compile will build all *.coffee files in /src/coffee into /public/js/. These can then be run through JSHint and uglify to compile into a single minified file with a sourceMap.
LESS compile will compile and minify the /src/less/bootstrap.less file into the /public/css/ folder.
Grunt watch has been setup to watch the /src directory and will by default, run all the assets to compile to minified versions.
grunt watch
Mocha with SuperTest is setup as a basic test sweet. use npm test to run the defined tests in the /tests directory.
npm test