You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/3/en/part3c.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,7 +57,7 @@ All of the application's <i>console.log</i> messages will appear in the <i>Conso
57
57
58
58
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.
59
59
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.
61
61
62
62
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.
63
63
@@ -103,7 +103,7 @@ Finally, we are ready to connect to our database. Start by clicking <i>connect</
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:
131
131
132
132
```js
133
133
constmongoose=require('mongoose')
@@ -171,7 +171,7 @@ The code also assumes that it will be passed the password from the credentials w
171
171
constpassword=process.argv[2]
172
172
```
173
173
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.
175
175
176
176
**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).
0 commit comments