Skip to content

Instantly share code, notes, and snippets.

@benwoody
Created October 20, 2012 19:12
Show Gist options
  • Save benwoody/3924369 to your computer and use it in GitHub Desktop.
Save benwoody/3924369 to your computer and use it in GitHub Desktop.
coffee script to create a teeny tiny server
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'
@benwoody
Copy link
Author

Test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment