Tell us what’s happening:
i have been trying to go through this problem. it has been saying that : connect mongoose to a database. i have passed the order two tests: install mongoose ; and install mongodb. what do i do next? i have even tried creating a new project to see if that works
Your code so far
myApp.js
let uri = 'mongodb+srv://promise:' + process.env.PASSWORD + '@johnson.lxnii.mongodb.net/db1?retryWrites=true&w=majority'
const mongoose = require('mongoose');
mongoose.connect(uri,{useNewUrlParser: true, useUnifiedTopology: true})
.env
password=password
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36
.
Challenge: Install and Set Up Mongoose
Link to the challenge: