-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdraft.js
38 lines (25 loc) · 866 Bytes
/
draft.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
mongoose
.connect(
`mongodb+srv://${mongocred.MONGO_USER}:${mongocred.MONGO_PASSWORD}@cluster0-k2y2h.mongodb.net/${mongocred.MONGO_DB}?retryWrites=true`,
{ useNewUrlParser: true },
).then(()=>{
console.log('connected to mongoDB ')
}).catch((err)=>{
console.log('err',err)
})
server.get('/', (req, res) => res.send('Produkt'))
server.listen({ port: port }, () => {
console.log('connected on localhost:' + port)
})
module.exports = {
MONGO_USER: "habibmokni",
MONGO_PASSWORD: "KdecavwtpNN9bQK7",
MONGO_DB: "q-product"
}
{
"mongoURI": "mongodb+srv://dplettlinger:[email protected]/test?retryWrites=true&w=majority"
"mongoURL": "mongodb+srv://habibmokni:[email protected]/test?retryWrites=true&w=majority"
}
2019-09-08T10:29:07.817Z
*/