Created
July 18, 2012 19:00
-
-
Save markprovan/3138093 to your computer and use it in GitHub Desktop.
CoffeeScript Node Web Server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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