Skip to content

Commit 53851c5

Browse files
authored
Add grabbing password to part3c.md
When running the index.js file after adding the code to the backend the password isn't fetched from command line or anywhere else so it can't be run as is.
1 parent 2488869 commit 53851c5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/content/3/en/part3c.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,8 @@ Let's get a quick start by copy-pasting the Mongoose definitions to the <i>index
371371
```js
372372
const mongoose = require('mongoose')
373373

374+
const password = process.argv[2]
375+
374376
// DO NOT SAVE YOUR PASSWORD TO GITHUB!!
375377
const url =
376378
`mongodb+srv://fullstack:${password}@cluster0.o1opl.mongodb.net/?retryWrites=true&w=majority`

0 commit comments

Comments
 (0)