Skip to content

Instantly share code, notes, and snippets.

@clonn
Created April 19, 2014 04:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clonn/11073908 to your computer and use it in GitHub Desktop.
Save clonn/11073908 to your computer and use it in GitHub Desktop.
simple node.js server
var http = require("http");
var port = 1337;
http.createServer(function (req, res) {
res.end("OK");
}).listen(port);
console.log("Start server port is " + port );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment