Created
May 27, 2014 21:21
-
-
Save lawrencejones/891cc55a0ed14c524808 to your computer and use it in GitHub Desktop.
Small express demo
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
| app = (require 'express')() | |
| app.get '/hello', (req, res) -> | |
| res.send 'world!\n' | |
| app.listen 3000, (err) -> | |
| throw err if err? | |
| console.log 'Server listening at port 3000' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment