Created
October 20, 2012 19:12
-
-
Save benwoody/3924369 to your computer and use it in GitHub Desktop.
coffee script to create a teeny tiny 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
server = require('http').createServer (request, response) -> | |
response.writeHead 200, ('ContentType': 'text/plain') | |
response.end "Hello World" | |
server.listen 8124 | |
console.log 'Server running at http://0.0.0.0:8124' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Test