Skip to content

Instantly share code, notes, and snippets.

@mbbx6spp
Last active October 20, 2024 14:29
Show Gist options
  • Select an option

  • Save mbbx6spp/297620 to your computer and use it in GitHub Desktop.

Select an option

Save mbbx6spp/297620 to your computer and use it in GitHub Desktop.
/* 2009-2010 (c) Copyright Susan Potter. https://www.susanpotter.net/software/ */
/* 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