Skip to content

Instantly share code, notes, and snippets.

@elbart
Created April 13, 2010 08:52
Show Gist options
  • Save elbart/364443 to your computer and use it in GitHub Desktop.
Save elbart/364443 to your computer and use it in GitHub Desktop.
var sys = require('sys'),
http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World\n');
}).listen(8000);
sys.puts('Server running at http://127.0.0.1:8000/');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment