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 e3e5fc4

Browse files
committed
hi
1 parent cf3d1f6 commit e3e5fc4

File tree

3 files changed

+22
-3
lines changed

3 files changed

+22
-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: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
var express = require('express');
2+
var app = express();
3+
var bodyparser=require('bodyparser');
4+
5+
6+
7+
8+
app.get('/', function (req, res) {
9+
res.send('Hello World!');
10+
});
11+
app.listen(3000, function () {
12+
console.log('Example app listening on port 3000!');
13+
});

0 commit comments

Comments
 (0)