-
Notifications
You must be signed in to change notification settings - Fork 0
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 f44da38
Showing
10 changed files
with
62 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,2 @@ | ||
/node_modules | ||
*.log |
Empty file.
Empty file.
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 @@ | ||
PORT = Number(process.env.PORT ? 8081) | ||
|
||
app = require './lib/app' | ||
|
||
server = require('http').createServer app | ||
if isNaN(PORT) then server.listen() else server.listen PORT | ||
console.log "Server running on :#{server.address().port} in #{app.settings.env} mode" |
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 @@ | ||
require('coffee-script'); | ||
require('./boot'); |
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,18 @@ | ||
express = require 'express' | ||
module.exports = app = express() | ||
|
||
ROOT = "#{__dirname}/.." | ||
|
||
app.configure -> | ||
app.set "views", "#{ROOT}/views" | ||
app.set "view engine", "jade" | ||
|
||
app.use express.methodOverride() | ||
app.use express.static("#{ROOT}/public") | ||
|
||
app.use express.bodyParser() | ||
app.use app.router | ||
|
||
app.use require('connect-assets')() | ||
|
||
app.get '/', (req, res) -> res.render 'index' |
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,20 @@ | ||
{ | ||
"name": "ui-prototype-may", | ||
"version": "0.0.0", | ||
"description": "ERROR: No README.md file found!", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"start": "node index.js" | ||
}, | ||
"repository": "", | ||
"author": "", | ||
"license": "Proprietary", | ||
"dependencies": { | ||
"express": "~3.2.1", | ||
"coffee-script": "~1.6.2", | ||
"less": "~1.3.3", | ||
"connect-assets": "~2.4.2", | ||
"jade": "~0.30.0" | ||
} | ||
} |
Empty file.
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,4 @@ | ||
extends layout | ||
|
||
block body | ||
h1 UI Prototype |
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,9 @@ | ||
!!! | ||
html | ||
head | ||
title UI Prototype | ||
!= css('style') | ||
!= js('script') | ||
|
||
body | ||
block body |