Skip to content

Commit 4b80205

Browse files
authored
Merge pull request #3391 from Leagian/part3c-mongo-password
Added password args line in mongo lesson
2 parents 7c512a9 + cfa0cb8 commit 4b80205

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/content/3/fr/part3c.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,9 @@ Commençons rapidement en copiant-collant les définitions de Mongoose dans le f
373373
```js
374374
const mongoose = require('mongoose')
375375
376+
// Assigns the second command line argument to 'password'
377+
const password = process.argv[2];
378+
376379
// DO NOT SAVE YOUR PASSWORD TO GITHUB!!
377380
const url =
378381
`mongodb+srv://fullstack:<password>@cluster0.o1opl.mongodb.net/noteApp?retryWrites=true&w=majority`

0 commit comments

Comments
 (0)