Commits

Dan Connolly  committed e2a4879

my first step in learning the craft of coffescript and node.js

  • Participants

Comments (0)

Files changed (1)

File make_some.coffee

+# backport hellow world from http://nodejs.org/ to coffeescript...
+
+# tried to get this working on cloud9ide, but couldn't figure
+# out how to compile it
+
+http = require('http')
+http.createServer((req, res) ->
+  res.writeHead(200, {'Content-Type': 'text/plain'})
+  res.end('Hello World\n')
+).listen(1337, "127.0.0.1")
+
+console.log('Server running at http://127.0.0.1:1337/')