Skip to content

Commit

Permalink
Update app.js
Browse files Browse the repository at this point in the history
  • Loading branch information
abboahene committed Sep 2, 2021
1 parent fd3c2f3 commit 3e7e852
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ app.use(require('./routes/member'))
////for the web server-------------------------------------

const mongoose = require('mongoose')
mongoose.connect('mongodb://localhost/rfid-attendance', {
mongoose.connect('mongodb+srv://Kwame:nanakwame@cluster0.umxb9.mongodb.net/Rfid-attendance?retryWrites=true&w=majority', {
useNewUrlParser: true,
useUnifiedTopology: true,
useFindAndModify: false,
Expand Down Expand Up @@ -140,4 +140,4 @@ wss.on('connection', async (ws) => {
server.listen('3001', () => console.log('websocket server listening at 3001...'))
app.listen('3002', () => {
console.log('express listening on port 3002...')
})
})

0 comments on commit 3e7e852

Please sign in to comment.