Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Mar 9, 2021. It is now read-only.

Commit b24d2d5

Browse files
authored
Merge pull request #1 from darthvader2/master
heroku-test-run
2 parents cb6c879 + a538b04 commit b24d2d5

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
lines changed

Procfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
web: node server.js

package.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
"name": "coderplex-backend",
33
"version": "0.0.0",
44
"description": "Backend for coderplex.org",
5-
"main": "index.js",
5+
"main": "server.js",
66
"scripts": {
7-
"test": "echo \"Error: no test specified\" && exit 1"
7+
"test": "echo \"Error: no test specified\" && exit 1",
8+
"start": "node server.js"
89
},
910
"repository": {
1011
"type": "git",
@@ -27,6 +28,10 @@
2728
"body-parser": "^1.18.3",
2829
"express": "^4.16.3",
2930
"mongodb": "^3.1.0",
30-
"nodemon": "^1.17.5"
31+
"nodemon": "^1.17.5",
32+
"express-jwt": "^3.0.1",
33+
"express-session": "^1.11.3",
34+
"jsonwebtoken": "^5.0.2"
35+
3136
}
3237
}

server.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
var express = require('express');
2+
var app = express();
3+
4+
5+
6+
app.get('/', function (req, res) {
7+
res.send('Welcome to coderplex');
8+
});
9+
app.listen(3000, function () {
10+
console.log('Example app listening on port 3000!');
11+
});

0 commit comments

Comments
 (0)