Skip to content

Instantly share code, notes, and snippets.

@pjb3
Created January 23, 2010 02:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pjb3/284396 to your computer and use it in GitHub Desktop.
Save pjb3/284396 to your computer and use it in GitHub Desktop.
var puts = require('sys').puts,
http = require('http')
http.createServer(function(req, res) {
res.sendHeader(200, {'Content-Type': 'text/html'})
res.sendBody('<h1>Hello World</h1>')
res.finish()
}).listen(8080)
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