Global Modules: npm install -g bbb coffee-script express geddy grunt houston jitsu mocha node-dev nib nodester-cli sinon socketstream stylus
Project Modules: restler (HTTP Requests) socket.io (websocket)
Deployment / Services: jitsu nodester-cli
//==================================================================== VARS | |
ani_speed = 0.5s | |
img_path( filename ) | |
'assets/images/'+filename | |
font_path( filename ) | |
'assets/fonts/'+filename |
var express = require('express'), | |
app = express(); | |
app.use( function(req, res, next) { | |
res.header('Access-Control-Allow-Origin', '*'); | |
res.header('Access-Control-Allow-Methods', 'GET,PUT,POST,DELETE,OPTIONS'); | |
res.header('Access-Control-Allow-Headers', 'X-Requested-With, X-HTTP-Method-Override, Content-Type, Accept'); | |
next(); | |
}); |
Global Modules: npm install -g bbb coffee-script express geddy grunt houston jitsu mocha node-dev nib nodester-cli sinon socketstream stylus
Project Modules: restler (HTTP Requests) socket.io (websocket)
Deployment / Services: jitsu nodester-cli
express = require 'express' | |
app = module.exports = express() | |
prefix = "api" | |
# The collection of models | |
models = | |
"writeoff": require '../models/writeoff' | |
### | |
# Create http interface for a model.<namespace> |