-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit c49a07b
Showing
11 changed files
with
117 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
fs = require 'fs' | ||
{print} = require 'sys' | ||
{spawn, exec} = require 'child_process' | ||
coffee_path = './node_modules/coffee-script/bin/coffee' | ||
|
||
task 'compile_coffee_files', 'Compile CoffeeScript source files', -> | ||
app_path = __dirname | ||
src_path = "#{__dirname}/app_src" | ||
|
||
app_coffee = spawn coffee_path, ['-cbw', '-o', app_root, "#{__dirname}/app_src"] | ||
app_coffee.stdout.on 'data', (data) -> print data.toString() | ||
app_coffee.stderr.on 'data', (data) -> print data.toString() | ||
app_coffee.on 'exit', (status) -> callback?() if status is 0 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
sass --watch input-dir:output-dir |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
express = require 'express' | ||
routes = require './routes' | ||
http = require 'http' | ||
app = express() | ||
|
||
app.configure -> | ||
app.set 'port', process.env.PORT || 3000 | ||
app.set 'views', __dirname + '/views' | ||
app.set 'view engine', 'jade' | ||
app.use express.favicon() | ||
app.use express.logger 'dev' | ||
app.use express.bodyParser() | ||
app.use express.methodOverride() | ||
app.use app.router | ||
app.use express.static(__dirname + '/public') | ||
|
||
app.configure 'development', -> | ||
app.use express.errorHandler() | ||
|
||
app.get '/', routes.index | ||
|
||
server = http.createServer(app) | ||
|
||
server.listen app.get('port'), -> | ||
console.log "Express server listening on port " + app.get('port') |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
exports.index = (req, res) -> | ||
res.render 'index', { title: 'Express' } |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"name": "application-name", | ||
"version": "0.0.1", | ||
"private": true, | ||
"scripts": { | ||
"start": "node app" | ||
}, | ||
"dependencies": { | ||
"express": "3.0.0beta5", | ||
"jade": "*", | ||
"coffee-script": "*", | ||
"the_time.js": "*" | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
body { | ||
padding: 50px; | ||
font: 14px "Lucida Grande", Helvetica, Arial, sans-serif; | ||
} | ||
|
||
a { | ||
color: #00B7FF; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
extends layout | ||
|
||
block content | ||
h1= title | ||
p Welcome to #{title} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
doctype 5 | ||
html | ||
head | ||
title= title | ||
link(rel='stylesheet', href='/stylesheets/style.css') | ||
body | ||
block content |