Skip to content

Instantly share code, notes, and snippets.

@faddah
Created September 17, 2013 17:34
Show Gist options
  • Save faddah/6597711 to your computer and use it in GitHub Desktop.
Save faddah/6597711 to your computer and use it in GitHub Desktop.
Wraithan's node.js quick & easy web server
var http = require('http')
http.createServer(function(req, res) {
if (req.url === '/') {
res.write('ohai');
res.end()
}
}).listen(9748)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment