fix(curriculum) - clearer mongoose install and set up instructions (#49754)

* Update install and set up instructions

I've added more specific instructions around where the mongoose.connect method should be called. Without context and prior knowledge for freeCodeCamp students, there may be confusion around whether this command needs to be called from the terminal or elsewhere.

* Update install and set up instructions - formatting

Small update to formatting for clarity

Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com>

---------

Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com>
This commit is contained in:
Genevieve L'Oreal
2023-03-19 21:46:24 +10:00
committed by GitHub
parent 607111978a
commit 830763da05

View File

@@ -32,7 +32,7 @@ Follow <a href='https://www.freecodecamp.org/news/get-started-with-mongodb-atlas
**Note:** If you are using Replit, you cannot create a `.env` file. Instead, use the built-in <dfn>SECRETS</dfn> tab to add the variable. <em>Do not</em> surround the values with quotes when using the <em>SECRETS</em> tab.
When you are done, connect to the database using the following syntax:
When you are done, connect to the database by calling the `connect` method within your `myApp.js` file by using the following syntax:
```js
mongoose.connect(<Your URI>, { useNewUrlParser: true, useUnifiedTopology: true });