Skip to content

Instantly share code, notes, and snippets.

@mbbx6spp
Created February 7, 2010 19:21
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 mbbx6spp/297620 to your computer and use it in GitHub Desktop.
Save mbbx6spp/297620 to your computer and use it in GitHub Desktop.
/* 2009-2010 (c) Copyright Susan Potter. http://geek.susanpotter.net */
/* Released under MIT License. */
/* Example using node.js */
(function () {
var sys = require('sys');
var http = require('http');
const PORT = 8080;
http.createServer(function (req, res) {
res.sendHeader(200, {'Content-Type': 'text/plain'});
res.sendBody('Hello Gorgeous');
res.finish();
}).listen(PORT);
sys.puts('Server running at http://0.0.0.0:' + PORT);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment