This is a Jump Off Point for Express 4 Sites
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
public
routes
src
tests
views
.gitignore
CHANGELOG.md
LICENSE
README.md
VERSION
app.js
gruntfile.coffee
nodemon.json
package.json
server.js

README.md

Express4 Bootstrape Jade Baseline

Join the chat at https://gitter.im/liaodrake/express4-bootstrape-jade-baseline

This is a Jump Off Point for Express 4 Sites

Includes:

Setup

  1. Change the name in the package.json.
  2. Run npm install to get all dependencies
  3. Run grunt build to build your assets
  4. Start the server
    • Locally Run nodemon server.js
    • Server Run npm start

Assests

Assets are named by the name value in the package.json file.

JavaScript / Coffee

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.

CSS / LESS

LESS compile will compile and minify the /src/less/bootstrap.less file into the /public/css/ folder.

Grunt watch

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

Testing

Mocha with SuperTest is setup as a basic test sweet. use npm test to run the defined tests in the /tests directory.

npm test