Tell us what’s happening:
Not sure why mongoose isn’t connecting
I am using this link: mongodb+srv://Bebop:<password>@codecluster-6ufys.mongodb.net/<dbname>?retryWrites=true&w=majority
And I think I am writing the correct password and dbname
Which should be CodeCluster from this image right?
Your code so far
(if not accessible it’s because glitch is down for some time)
myApp.js
const mongoose = require('mongoose');
mongoose.connect(process.env.MONGO_URI);
package.json
"dependencies": {
"express": "^4.17.1",
"body-parser": "^1.19.0",
"mongoose": "^5.9.18",
"mongodb": "^3.5.8"
},
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.158 Safari/537.36
.
Challenge: Install and Set Up Mongoose
Link to the challenge: