Created
November 3, 2012 20:42
-
-
Save protestContest/4008655 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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