StephenGrider / FullstackReactCode

Companion repo to https://www.udemy.com/node-with-react-fullstack-web-development
1.39k stars 1.18k forks source link

Few tips for successfully running the code in 2020 #76

Open john012343210 opened 3 years ago

john012343210 commented 3 years ago
  1. if the MongoDB URL starts with mongodb+srv:, then you need to upgrade the mongoose package, otherwise Invalid mongodb uri Must begin with “mongodb://” error will appear

  2. if error

GooglePlusAPIError: Legacy People API has not been used in project 123123123123123 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/legacypeople.googleapis.com/overview?project=123123123123123 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.

appears during the OAuth process, then please upgrade the passport-google-oauth2 package

my package.json

 "dependencies": {
    "@sendgrid/mail": "^7.0.0",
    "body-parser": "^1.19.0",
    "concurrently": "^3.5.0",
    "cookie-session": "^2.0.0-rc.1",
    "express": "^4.17.1",
    "localtunnel": "^1.8.3",
    "lodash": "^4.17.15",
    "mongodb": "^3.5.6",
    "mongoose": "^5.10.2",
    "nodemon": "^1.11.0",
    "passport": "^0.3.2",
    "passport-google-oauth20": "^2.0.0",
    "path-parser": "^4.2.0",
    "sendgrid": "^5.1.2",
    "stripe": "^4.23.1"
  }
reflycharles123 commented 3 years ago

Hello im a complete beginneer to learn a MERN stack and follow along this course. hope to get some value ,so the point i got stuck is im not having MLAB account then im try to create a MONGOdb atlas account and now confuse about how do i config and save the users collection like mr stephen steps to database ,

john012343210 commented 3 years ago

@reflycharles123 the Mlab isn't very intuitive, you could consider using other mongo service provider instead, I recommend Atlas, all the best to your learning journey, also you should provide more details, otherwise, other won't know exactly which point are you stuck at. You could directly approach Stephen in udemy