Skip to content

Commit f8efd81

Browse files
committed
heroku button added
1 parent fb02948 commit f8efd81

File tree

5 files changed

+39
-1
lines changed

5 files changed

+39
-1
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ node_modules/
55
platforms/
66
plugins/
77
.DS_Store
8+
9+
.*.sw*

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
11
# jsconfuy
2+
3+
You can deploy your own copy of the app using this button:
4+
5+
[![Deploy to Heroku](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy?template=https://github.com/startapplabs/jsconfuy/tree/master)
6+
7+
## Documentation
8+
9+
For more information about using Heroku, check out https://devcenter.heroku.com/

app.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "Ionic JSConfUY workshop",
3+
"description": "A simple Ionic app for JSConfUY 2015",
4+
"repository": "https://github.com/startapplabs/jsconfuy",
5+
"logo": "https://dl.dropboxusercontent.com/u/30873364/ionWorkshop/logo.png",
6+
"keywords": ["ionic", "javascript", "jsconf", "jsconfuy"]
7+
}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "1.0.0",
44
"description": "jsconfuy: An Ionic project",
55
"dependencies": {
6+
"express": "~4.4.3",
67
"gulp": "^3.5.6",
78
"gulp-sass": "^1.3.3",
89
"gulp-concat": "^2.2.0",
@@ -20,4 +21,4 @@
2021
"com.ionic.keyboard"
2122
],
2223
"cordovaPlatforms": []
23-
}
24+
}

server.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
var express = require('express'),
2+
app = express();
3+
4+
app.use(express.static('www'));
5+
6+
// CORS (Cross-Origin Resource Sharing) headers to support Cross-site HTTP requests
7+
app.all('*', function(req, res, next) {
8+
res.header("Access-Control-Allow-Origin", "*");
9+
res.header("Access-Control-Allow-Headers", "X-Requested-With");
10+
next();
11+
});
12+
13+
// API Routes
14+
// app.get('/blah', routeHandler);
15+
16+
app.set('port', process.env.PORT || 5000);
17+
18+
app.listen(app.get('port'), function () {
19+
console.log('Express server listening on port ' + app.get('port'));
20+
});

0 commit comments

Comments
 (0)