Skip to content

Instantly share code, notes, and snippets.

@jreading
Created July 12, 2013 18:11
Show Gist options
  • Save jreading/5986528 to your computer and use it in GitHub Desktop.
Save jreading/5986528 to your computer and use it in GitHub Desktop.
A simple server in node.
var connect = require('connect');
var portNum = 1337;
connect.createServer(
connect.static(__dirname)
).listen(portNum);
console.log('listening on '+portNum+'...');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment