Skip to content

Instantly share code, notes, and snippets.

@swannodette
Created July 8, 2010 06:32
Show Gist options
  • Save swannodette/467708 to your computer and use it in GitHub Desktop.
Save swannodette/467708 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/html'});
res.end('Hello Node!');
}).listen(8080, "127.0.0.1");
sys.puts('Server running at http://127.0.0.1:8080/');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment