I have just confirmed that the lessons still work even after the changes made from the acquisition of mlab by mongodb, these instructions need to be fully changed however, I will look to submitting a PR or see if one hasn’t already been submitted.
But, it should not stop anyone from continuing with the lessons, since the instructions in MongoDB Atlas are pretty clear, see below for brief instructions or go to this link for a more detailed set of instructions from a PR of the lesson that is pending approval.
- Create your MongoDB Atlas account.
- As soon as you login, it will walk you through building your first cluster - may take a few minutes to complete.
- Then following the green tab in the bottom left of the screen, click on
Create your first database user, follow the instructions and create a user with a password.
- In the same green Get started tab click on
Whitelist your IP address, warning here, glitch will not connect if you don’t allow all IP addresses, which is what I did for it to work.
Connect to Your Cluster> click
connectin the sandbox window, and then click
connect your applicationin the pop up window, then copy the connection string, and paste it in your .env file in glitch and substitute the password you provided in step 3 for the
<password>area , and you are good to go. Test the first lesson and it should pass.
mongoDB Atlas says it requires MongoDB version 4.0 for the free tier clusters . If you are using Mongoose, this means that you would need mongoose > 5.2 to have a compatible mongoDB driver that Atlas can use
Submit the link to your LIVE page from glitch for the challenge to pass and not the link to your glitch editor