Skip to content

Instantly share code, notes, and snippets.

@markprovan
Created July 18, 2012 19:00
Show Gist options
  • Save markprovan/3138093 to your computer and use it in GitHub Desktop.
Save markprovan/3138093 to your computer and use it in GitHub Desktop.
CoffeeScript Node Web Server
http = require("http")
http.createServer((req, res) ->
res.writeHead(200, "Content-Type": "text/html")
res.end("<h1>Hello World</h1>")
).listen(1337, "127.0.0.1")
console.log("Server running at http://localhost:1337")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment