Skip to content

Instantly share code, notes, and snippets.

@yitsushi
Created February 6, 2013 12:48
Show Gist options
  • Save yitsushi/4722323 to your computer and use it in GitHub Desktop.
Save yitsushi/4722323 to your computer and use it in GitHub Desktop.
Simple HTTP Server with Node.js
http = require("http");
http.createServer(function(request,response){
response.writeHeader(200, {"Content-Type": "text/plain"});
response.write("Soon :)");
response.end();
}).listen(process.env.PORT || 3000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment