Skip to content

Commit 18018bc

Browse files
➕ added Mongoose and bcrypt
1 parent 4d31e49 commit 18018bc

File tree

3 files changed

+244
-2
lines changed

3 files changed

+244
-2
lines changed

package-lock.json

Lines changed: 241 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
"author": "prathmesh-ka-github",
1212
"license": "ISC",
1313
"dependencies": {
14+
"bcrypt": "^6.0.0",
1415
"express": "^5.1.0",
16+
"mongoose": "^8.15.1",
1517
"nodemon": "^3.1.10"
1618
}
1719
}

server.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ app.use(express.json())
77
app.use(express.urlencoded({extended : false}));
88
app.use(express.static(__dirname + '/client/'));
99

10-
// Endpoints
10+
// Basic Endpoints
1111
app.get('/',(req, res) => {
1212
// res.writeHead(200,{ 'Content-Type':'html' })
1313
res.status(200)
@@ -59,7 +59,6 @@ app.use(express.static(__dirname + '/client/'));
5959
res.sendFile( __dirname + '/client/four-game-teams.html')
6060
})
6161

62-
6362
//! LISTEN
6463
app.listen(port,() => {
6564
console.log(`Listening to http://localhost:${port}/`)

0 commit comments

Comments
 (0)