Skip to content

Instantly share code, notes, and snippets.

@RobWC
Created January 22, 2012 21:54
Show Gist options
  • Save RobWC/1659040 to your computer and use it in GitHub Desktop.
Save RobWC/1659040 to your computer and use it in GitHub Desktop.
Basic Node Example
var http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World\n');
}).listen(80, "0.0.0.0");
console.log('Server running at http://0.0.0.0:80/');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment