Skip to content

Instantly share code, notes, and snippets.

@visnup
Created August 28, 2010 15:58
Show Gist options
  • Save visnup/555287 to your computer and use it in GitHub Desktop.
Save visnup/555287 to your computer and use it in GitHub Desktop.
var http = require('http');
var server = http.createServer(function (req, res) {
res.writeHead(200, { "Content-Type": "text/plain" })
res.end("Hello world\n");
});
server.listen(parseInt(process.env.PORT || 8080));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment