/node-express-3.0-html5-boilerplate

Boilerplate code for rocking fresh Node projects with Express 3.0, Jade, development & production environments, and asset management for compiling, concatenating and minifying less and javascript files.

Primary LanguageJavaScript

Node Express 3.0 HTML5 Boilerplate

Introduction

Boilerplate code for rocking fresh Node projects with Express 3.0, Jade, and asset management for compiling, concatenating and minifying less and javascript files.

Two development environments: development and production. Assets are concatenated, minified, hashed and cached in production and the Jade template files are updated in accordance.

Requirements

This project uses a number of bits and bobs:

  • Node.js
  • Express Lightweight framework for Node
  • Jade Node templating language (bit like Haml)
  • Less Node dynamic css language.
  • Connect Assets A Rails 3.1-style asset pipeline for Node.js

Install

Install dependencies:

$ npm install -d

Run the app in development mode:

$ node app.js

To switch the environment to production, you can set the NODE_ENV environment variable:

$ NODE_ENV=production node app.js

License

Node Express 3.0 HTML5 Boilerplate is licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License.

Copyright 2012, Scotty Vernon // Wildflame Studios