Skip to content

Commit 50418fc

Browse files
Andrew DunkmanAndrew Dunkman
authored andcommitted
Merge branch 'team1' of github.com:adunkman/stalkqr
Conflicts: README.md app.coffee package.json public/css/app.styl views/layout.jade
2 parents 9895710 + 938af10 commit 50418fc

5 files changed

Lines changed: 20 additions & 14 deletions

File tree

‎README.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![Build Status](https://secure.travis-ci.org/adunkman/stalkqr.png?branch=master)](http://travis-ci.org/adunkman/stalkqr)
44

5-
An open source project by the NodeKC group.
5+
An open source project by the NodeKC group.
66

77
http://nodekc.org
88

@@ -14,7 +14,7 @@ This project will generate URL's that can be used by others to add your social c
1414

1515
###Set up your environment variables
1616

17-
#### UNIX
17+
#### UNIX
1818
export KEY=value
1919

2020
#### Windows
@@ -24,7 +24,7 @@ This project will generate URL's that can be used by others to add your social c
2424
heroku config:add KEY=value
2525

2626
##Twitter API Key
27-
27+
2828
TWITTER_CONSUMER_KEY
2929
TWITTER_CONSUMER_SECRET
3030

@@ -41,5 +41,5 @@ https://github.com/account/applications Once again, it's important to set the ca
4141

4242
CALLBACK_BASE_URL
4343

44-
You will need to set up your base callback url. This is the root url to where the site is hosted. Examples include: http://localhost:3000 or http://hazy-mist-1110.herokuapp.com
44+
You will need to set up your base callback url. This is the root url to where the site is hosted. Examples include: http://localhost:3000 or http://hazy-mist-1110.herokuapp.com
4545

‎app.coffee‎

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ app = express.createServer()
66
port = process.env.PORT || 3000
77
sessionSecret = process.env.SESSION_SECRET || 'stalkqr'
88

9-
controllers =
9+
controllers =
1010
authentication: require './controllers/authentication'
1111
site: require './controllers/site'
1212
code: require './controllers/code'
@@ -22,19 +22,22 @@ app.configure ->
2222
app.set 'view engine', 'jade'
2323

2424
app.configure 'development', ->
25-
app.use stylus.middleware
26-
src: path.join __dirname, 'public'
27-
25+
app.use stylus.middleware
26+
src: path.join __dirname, 'public'
27+
2828
app.configure 'production', ->
29-
app.use stylus.middleware
30-
src: path.join __dirname, 'public'
29+
app.use stylus.middleware
30+
src: path.join __dirname, 'public'
3131
compress: true
3232

3333
controllers.authentication.use app
3434
controllers.site.use app
3535
controllers.code.use app
3636
controllers.event.use app
3737

38+
app.get '/generate', bitly.generate, (req, res) ->
39+
res.render 'layout', res.data
40+
3841
app.listen port
3942

4043
console.log 'server listening on port ' + port

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"should": "~v0.5.1",
1717
"mocha": "v0.13.0"
1818
},
19-
19+
2020
"scripts": {
2121
"test": "make test"
2222
}

‎public/css/app.styl‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
body
22
font-family 'Helveteca Neue', arial, sans-serif
3-
a
3+
color white
4+
5+
a
46
color #8cc84b
57
text-decoration none
68
&:hover
79
text-decoration underline
8-
h1
10+
11+
h1
912
font-size 3em
1013
font-family verdana
1114
margin-top 2em

‎views/layout.jade‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ html(lang="en")
44
title stalkqr
55
link(rel='stylesheet', href='/css/app.css')
66

7-
body!= body
7+
body!= body

0 commit comments

Comments
 (0)