Skip to content

Instantly share code, notes, and snippets.

@Chandler
Last active December 14, 2015 00:49
Show Gist options
  • Save Chandler/5002085 to your computer and use it in GitHub Desktop.
Save Chandler/5002085 to your computer and use it in GitHub Desktop.
var express = require('express')
, http = require('http');
var app = express();
var server = app.listen(8080, '127.0.0.1');
var io = require('socket.io').listen(server);
app.configure(function(){
app.use(express.static(__dirname + '/public'));
})
app.get('/', function (req, res) {
res.sendfile(__dirname + '/index.html');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment