mirror of
https://github.com/Priyatham-sai-chand/Locaft-backend.git
synced 2026-10-05 08:51:33 -07:00
heroku server deploy
This commit is contained in:
parent
581b1bf7aa
commit
0ac4a8b200
3 changed files with 31 additions and 1 deletions
1
Procfile
Normal file
1
Procfile
Normal file
|
|
@ -0,0 +1 @@
|
|||
web: node dist/main.js
|
||||
28
package.json
28
package.json
|
|
@ -49,3 +49,31 @@
|
|||
]
|
||||
}
|
||||
}
|
||||
{
|
||||
"name": "auth",
|
||||
"version": "1.0.0",
|
||||
"description": "sign up and sign in auth",
|
||||
"main": "server.js",
|
||||
"scripts": {
|
||||
"start": "nodemon server.js",
|
||||
"app": "cd .. && npm start"
|
||||
},
|
||||
"author": "B. Priyatham Sai chand",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"bcryptjs": "^2.4.3",
|
||||
"config": "^3.3.2",
|
||||
"context": "^1.1.0",
|
||||
"cors": "^2.8.5",
|
||||
"dotenv": "^8.2.0",
|
||||
"express": "^4.17.1",
|
||||
"express-validator": "^6.6.1",
|
||||
"jsonwebtoken": "^8.5.1",
|
||||
"mongoose": "^5.10.13",
|
||||
"nodemon": "^2.0.6"
|
||||
},
|
||||
"engines": {
|
||||
"node": "14.x",
|
||||
"npm": "6.14.8"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,4 +30,5 @@ mongoose.connect(
|
|||
|
||||
// set up routes
|
||||
|
||||
app.use("/users", require("./routes/users"));
|
||||
app.use("/users", require("./routes/users"));
|
||||
app.get('/', (req, res) => { res.send('Hello from Express!')};
|
||||
|
|
|
|||
Loading…
Reference in a new issue