Connect the mongoose to database

Tell us what’s happening:
Describe your issue in detail here.

Your project link(s)

solution: https://replit.com/@angelikadomingo/boilerplate-mongomongoose-4

Your browser information:

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

Challenge: Install and Set Up Mongoose

Link to the challenge:

Hi @domingoangelika08 !

Welcome to the forum!

The fact that I can see your mongo uri in the sample env file probably tells me you are not using the secrets tab in replit.
Remember that you do no want to expose your secret keys to everyone.
That is why we use env variables to keep that sensitive information secret. :grinning:

You need to delete your mongo uri out of the sample env file and add your uri to the secrets tab.

On the far left hand side of replit you should see a padlock icon.
Click on that to add your mongo uri.

Hope that helps!

1 Like

yes, or use a hidden .env file instead, but that am not sure will work in repl.it