Base for building web applications with Node.js, CoffeeScript, Stylus, Backbone.js and Handlebars.js.
Cool stuff:
- Uses Handlebars.js for both the server and client templating
- Has buildin support for CSS live reloading
- Asset management. Do not ever use preminified assets. Piler will do that for us
Server-side code:
lib/
Client-side code:
client/
Client styles:
client/styles/
Vendor bundles for the client (JS and CSS!):
client/vendor/
Handlebars templates:
views/
Client-side Handlebars templates:
views/client
Random helper scripts
bin/
- Use two spaces for indentation everywhere
- camelCase for CSS classes and IDs
- camelCase for CoffeeScript variables and properties
- UpperCamelCase for CoffeeScript classes
- Max 79 characters per line. Keeps pyramid of doom away :)
Build dependencies
sudo apt-get install libssl-dev
Build
cd /tmp/
wget http://nodejs.org/dist/latest/node-v0.6.7.tar.gz
tar xzvf node-v0.6.7.tar.gz
cd node-v0.6.7
./configure
make
sudo make install
npm install
In development
bin/develop
Node.js debugging
bin/debug
Production
export NODE_END=production
npm start
- CoffeeScript
- Backbone.js
- Handlebars.js
- Underscore.js
- Async.js
- jQuery
- Node.js
- Express
- Cool Vim tricks ;)