Skip to content

Commit 936d669

Browse files
authored
Merge pull request #3179 from myverdict/patch-7
Update part3c.md
2 parents 74f6e91 + 373d937 commit 936d669

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/content/3/en/part3c.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ All of the application's <i>console.log</i> messages will appear in the <i>Conso
5757

5858
Debugging Full Stack applications may seem tricky at first. Soon our application will also have a database in addition to the frontend and backend, and there will be many potential areas for bugs in the application.
5959

60-
When the application "does not work", we have to first figure out where the problem actually occurs. It's very common for the problem to exist in a place where you didn't expect it to, and it can take minutes, hours, or even days before you find the source of the problem.
60+
When the application "does not work", we have to first figure out where the problem actually occurs. It's very common for the problem to exist in a place where you didn't expect it, and it can take minutes, hours, or even days before you find the source of the problem.
6161

6262
The key is to be systematic. Since the problem can exist anywhere, <i>you must question everything</i>, and eliminate all possibilities one by one. Logging to the console, Postman, debuggers, and experience will help.
6363

@@ -103,7 +103,7 @@ Finally, we are ready to connect to our database. Start by clicking <i>connect</
103103

104104
![mongodb database deployment connect](../../images/3/mongo5.png)
105105

106-
and choose: <i>Connect your application</i>:
106+
and choose: <i>Connect to your application</i>:
107107

108108
![mongodb connect application](../../images/3/mongo6.png)
109109

@@ -127,7 +127,7 @@ Let's install Mongoose in our notes project backend:
127127
npm install mongoose
128128
```
129129

130-
Let's not add any code dealing with Mongo to our backend just yet. Instead, let's make a practice application by creating a new file, <i>mongo.js</i>:
130+
Let's not add any code dealing with Mongo to our backend just yet. Instead, let's make a practice application by creating a new file, <i>mongo.js</i> in the root of the notes backend application:
131131

132132
```js
133133
const mongoose = require('mongoose')
@@ -171,7 +171,7 @@ The code also assumes that it will be passed the password from the credentials w
171171
const password = process.argv[2]
172172
```
173173

174-
When the code is run with the command <i>node mongo.js password</i>, Mongo will add a new document to the database.
174+
When the code is run with the command <i>node mongo.js yourPassword</i>, Mongo will add a new document to the database.
175175

176176
**NB:** Please note the password is the password created for the database user, not your MongoDB Atlas password. Also, if you created a password with special characters, then you'll need to [URL encode that password](https://docs.atlas.mongodb.com/troubleshoot-connection/#special-characters-in-connection-string-password).
177177

0 commit comments

Comments
 (0)