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
The node modules folder is usually in the .gitignore file and therefore should not be in the repo. Your .gitignore file already has node modules therefore therefore you made the file afterwards which caused the problem.
Have you used virtual env? In app.js line 14 mongoose.connect("mongodb+srv://admin-sakshi:clustersak5@cluster091jym.mongodb.net/todoappDB"
This is usually in a virtual env and the virtual env is in .gitignore file. another alternative is to
commit the .env file but not reveal your information.
Usually it is like const uri = process.env.ATLAS_URI; mongoose.connect(uri, { useNewUrlParser: true, useCreateIndex: true, useUnifiedTopology: true} );
The text was updated successfully, but these errors were encountered:
The node modules folder is usually in the .gitignore file and therefore should not be in the repo. Your .gitignore file already has node modules therefore therefore you made the file afterwards which caused the problem.
Have you used virtual env? In app.js line 14
mongoose.connect("mongodb+srv://admin-sakshi:clustersak5@cluster091jym.mongodb.net/todoappDB"
This is usually in a virtual env and the virtual env is in .gitignore file. another alternative is to
commit the .env file but not reveal your information.
Usually it is like
const uri = process.env.ATLAS_URI; mongoose.connect(uri, { useNewUrlParser: true, useCreateIndex: true, useUnifiedTopology: true} );
The text was updated successfully, but these errors were encountered: