Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node modules #1

Open
Leovaldez42 opened this issue Jun 19, 2020 · 0 comments
Open

Node modules #1

Leovaldez42 opened this issue Jun 19, 2020 · 0 comments

Comments

@Leovaldez42
Copy link

Leovaldez42 commented Jun 19, 2020

  1. 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.

  2. 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} );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant