Skip to content

Instantly share code, notes, and snippets.

@protestContest
Created November 3, 2012 20:42
Show Gist options
  • Save protestContest/4008655 to your computer and use it in GitHub Desktop.
Save protestContest/4008655 to your computer and use it in GitHub Desktop.
var express = require('express')
, app = express.createServer()
, routes = require('./routes')
, redis = require('redis')
;
var app = module.exports = express.createServer();
app.listen(8080, function() {
console.log("listening");
});
var io = require('socket.io').listen(app)
app.configure(function(){
app.set('views', __dirname + '/views');
app.set('view engine', 'jade');
app.use(express.bodyParser());
app.use(express.methodOverride());
app.use(app.router);
app.use(express.static(__dirname + '/public'));
});
app.get('/', function(req, res) {
res.render('index.jade', {'title': 'hello'});
});
io.sockets.on('connection', function(socket) {
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment