You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please hold your pull request until the event starts... the main idea of this is to add the dotenv package in the package.json and replace the explicitly mentioned MongoDB URI in the app.js file. I will also come up with a few more issues before the event starts, you can check them out as well.
npm i dotenv
.env
and addMONGODB_URI=mongodb://localhost:27017/blogDB
or your local/remote equivalentmongoose.connect("mongodb://localhost:27017/blogDB", {useNewUrlParser: true, useUnifiedTopology: true});
withmongoose.connect(process.env.MONGODB_URI, {useNewUrlParser: true, useUnifiedTopology: true});
in app.js.env
to.gitignore
file.The text was updated successfully, but these errors were encountered: