Skip to content

Instantly share code, notes, and snippets.

@ruzz311
Created November 28, 2011 02:56
Show Gist options
  • Save ruzz311/1398894 to your computer and use it in GitHub Desktop.
Save ruzz311/1398894 to your computer and use it in GitHub Desktop.
Nodejs Hello World Example
var sys = require('sys'),
http = require('http');
http.createServer(function(req, res) {
res.writeHead(200, {'Content-Type': 'text/html'});
res.write('<p>Hello World</p>');
res.end();
}).listen(8080);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment