Skip to content

Instantly share code, notes, and snippets.

@nathanjohnson320
Created October 23, 2013 23:08
Show Gist options
  • Save nathanjohnson320/7128458 to your computer and use it in GitHub Desktop.
Save nathanjohnson320/7128458 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!");
}).listen(process.env port || 11111);
console.log("Server listening on port: " + server.address().port);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment