Skip to content

Commit f44da38

Browse files
committed
initial commit
0 parents  commit f44da38

File tree

10 files changed

+62
-0
lines changed

10 files changed

+62
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/node_modules
2+
*.log

assets/css/style.less

Whitespace-only changes.

assets/js/script.coffee

Whitespace-only changes.

boot.coffee

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
PORT = Number(process.env.PORT ? 8081)
2+
3+
app = require './lib/app'
4+
5+
server = require('http').createServer app
6+
if isNaN(PORT) then server.listen() else server.listen PORT
7+
console.log "Server running on :#{server.address().port} in #{app.settings.env} mode"

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
require('coffee-script');
2+
require('./boot');

lib/app.coffee

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
express = require 'express'
2+
module.exports = app = express()
3+
4+
ROOT = "#{__dirname}/.."
5+
6+
app.configure ->
7+
app.set "views", "#{ROOT}/views"
8+
app.set "view engine", "jade"
9+
10+
app.use express.methodOverride()
11+
app.use express.static("#{ROOT}/public")
12+
13+
app.use express.bodyParser()
14+
app.use app.router
15+
16+
app.use require('connect-assets')()
17+
18+
app.get '/', (req, res) -> res.render 'index'

package.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"name": "ui-prototype-may",
3+
"version": "0.0.0",
4+
"description": "ERROR: No README.md file found!",
5+
"main": "index.js",
6+
"scripts": {
7+
"test": "echo \"Error: no test specified\" && exit 1",
8+
"start": "node index.js"
9+
},
10+
"repository": "",
11+
"author": "",
12+
"license": "Proprietary",
13+
"dependencies": {
14+
"express": "~3.2.1",
15+
"coffee-script": "~1.6.2",
16+
"less": "~1.3.3",
17+
"connect-assets": "~2.4.2",
18+
"jade": "~0.30.0"
19+
}
20+
}

public/.gitkeep

Whitespace-only changes.

views/index.jade

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
extends layout
2+
3+
block body
4+
h1 UI Prototype

views/layout.jade

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
!!!
2+
html
3+
head
4+
title UI Prototype
5+
!= css('style')
6+
!= js('script')
7+
8+
body
9+
block body

0 commit comments

Comments
 (0)