MongoDB and Mongoose - Install and Set Up Mongoose

Tell us what’s happening:

Hello,
I’m currently working through the FreeCodeCamp MongoDB and Mongoose project, and I’m having trouble with the MongoDB Atlas connection setup. I’ve followed the steps, but I’m unsure where to place the MongoDB connection string. FreeCodeCamp warns not to edit server.js, and I’m wondering if there’s another file or method for setting up the connection correctly. So, as it’s said to use this guide: MongoDB Atlas Tutorial – How to Get Started, but it seems outdated and unclear. I’m stuck in the process. Could you help me set up the account and connection correctly? Any guidance would be appreciated. Thanks in advance!

Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36

Challenge Information:

MongoDB and Mongoose - Install and Set Up Mongoose

it is possible it is, it’s from 2021

would that be the URI? that goes in the .env file

So, I did add the MongoDB URI to the .env file now. So, what is the next step?

Thanks for the help!:blush: