Skip to content

Instantly share code, notes, and snippets.

@pbrewczynski
Created July 11, 2014 08:33
Show Gist options
  • Save pbrewczynski/e081a8ca4f3cd84ff21d to your computer and use it in GitHub Desktop.
Save pbrewczynski/e081a8ca4f3cd84ff21d to your computer and use it in GitHub Desktop.
// Load the http module to create an http server
var http = require('http');
var server = http.createServer(function(request, response) {
response.writeHead(200, {"Content-Type": "text/plain"});
response.end("Hello World\n");
console.log("New Connection!" + new Date());
});
server.listen(8000);
console.log("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