Skip to content

Instantly share code, notes, and snippets.



Last active Apr 27, 2020
What would you like to do?
demo http server #coffee
http = require("http")
PORT = process.env.PORT or 3000
http.createServer((req, res) ->
console.log "%d request received",
res.writeHead 200,
"Content-Type": "text/plain"
res.end "Hello world!\n"
).listen PORT
console.log "%d listening on %d",, PORT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.