Skip to content

Instantly share code, notes, and snippets.

@gjohnson
Created September 18, 2011 06:01
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 gjohnson/1224790 to your computer and use it in GitHub Desktop.
Save gjohnson/1224790 to your computer and use it in GitHub Desktop.
HTTP Server - NCDEVCON
var http = require('http');
var server = http.createServer(function(req, res) {
res.writeHead(200, { 'Content-type': 'text/plain' });
res.write('Hello');
res.end('NCDevCon');
});
server.listen(8000);
console.log('running on: %j', server.address());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment