Open tusharkhatriofficial opened 1 year ago
Hey! @tusharkhatriofficial can you assign me this task as a part of hacktoberfest
Hi @Ujjawal3 yes I will!
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.
Hi @tusharkhatriofficial as hacktoberfest has started today so can I start working on this now ?
Thank You for working on this :)
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.