Created
July 13, 2012 23:04
-
-
Save monokrome/3108135 to your computer and use it in GitHub Desktop.
This file contains 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
// This loads coffee for if you want to run `node bootstrap.js` | |
// instead of `coffee server.coffee` | |
require('coffee-script') | |
require('server') |
This file contains 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
zest = require 'zest' | |
urls = require './urls' | |
server = new zest.http.Server | |
server.port = 8000 | |
server.listen urls |
This file contains 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
zest = require 'zest' | |
views = require './views' | |
url = zest.http.url | |
module.exports = [ | |
url(/^$/, views.home), | |
] |
This file contains 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
module.exports = | |
home: (request, response) -> | |
response.writeHead | |
'Content-type': 'text/plain' | |
response.end 'Hello, world.' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment