Skip to content

Instantly share code, notes, and snippets.

@avinashseth
Created February 22, 2019 15:16
Show Gist options
  • Save avinashseth/3a90fa76709e479c80535db00a7efa60 to your computer and use it in GitHub Desktop.
Save avinashseth/3a90fa76709e479c80535db00a7efa60 to your computer and use it in GitHub Desktop.
var http = require('http');
var server = http.createServer(function(request, response) {
response.writeHead(200, {"Content-Type": "text/plain"});
response.end("Hello world with Avinash Seth");
});
var port = process.env.PORT || 8000;
server.listen(port);
console.log("Server running at http://localhost:%d", port);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment