Tell us what’s happening:
Im unable to connect to mongoose. Again cannot find any help online or through other people issues.
require(‘dotenv’).config();
const mongoose = require(‘mongoose’)
mongoose.connect(process.env.MONGO_URI, { useNewUrlParser: true, useUnifiedTopology: true });
There, enlight me please!
Thanks in advance
Your project link(s)
solution: https://freecodecampdb.herokuapp.com
Your browser information:
User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36
Challenge: Install and Set Up Mongoose
Link to the challenge: