Skip to content

Instantly share code, notes, and snippets.

@nathenharvey
Created June 4, 2019 07:04
Show Gist options
  • Save nathenharvey/d37ba7994cab25a646997c5ea0900a5b to your computer and use it in GitHub Desktop.
Save nathenharvey/d37ba7994cab25a646997c5ea0900a5b to your computer and use it in GitHub Desktop.
var http = require('http');
var handleRequest = function(request, response) {
response.writeHead(200);
response.end("Hello World!");
}
var www = http.createServer(handleRequest);
www.listen(8080);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment