@@ -24,7 +24,7 @@ MongoDB is a NoSQL document-store database. It is scalable and performant. It ha |
24 | 24 |
|
25 | 25 | What's good about MongoDB in addition to its scaling and performance is that MongoDB uses a JavaScript interface, which completes the full stack JavaScript stack puzzle of browser, server, and the database layers. With MongoDB we can use one language for all three layers. The easiest way to get started with MongoDB is to use its shell, a.k.a. REPL (read-eval-print-loop). |
26 | 26 |
|
27 | | -<span id="mongodb-shell" class="anchor"><span id="shell" class="anchor"></span></span>MongoDB Shell |
| 27 | +MongoDB Shell |
28 | 28 | =================================================================================================== |
29 | 29 |
|
30 | 30 | If you haven't done so already, please install the latest version of MongoDB from <https://www.mongodb.com/download-center>. For more instructions, please refer to the "Database: MongoDB" section in Chapter 2. You might have to create a data folder per the instructions. |
@@ -118,11 +118,11 @@ const Car = new Schema({ driver: ObjectId }) |
118 | 118 | MongoDB Native Driver |
119 | 119 | ===================== |
120 | 120 |
|
121 | | -We'll use MongoDB Native Node.js Driver (<https://github.com/christkv/node-mongodb-native>) to access MongoDB from Node.js applications. Full documentation is also available at <http://bit.ly/2Lao9UW>. To install MongoDB Native Node.js Driver , use: |
| 121 | +We'll use MongoDB Native Node.js Driver (<https://github.com/christkv/node-mongodb-native>) to access MongoDB from Node.js applications. This will add persistence to Node.js apps meaning apps will save and retrieve data from a permanent location instead of relying on an ephemeral in-memory store. To install MongoDB Native Node.js Driver , use: |
122 | 122 |
|
123 | 123 | `$ npm install mongodb` |
124 | 124 |
|
125 | | -Keep in mind that the preceeding command is to install the driver library, not the database. I taught many workshops and in almost every one of them there would be a person who would confuse installing `mongodb` using npm with installing a database. Don't be this person. We need both, the database and the npm library. I already covered the database installation. If you have any issue with installing the driver, read the details are at <https://mongodb.github.io/node-mongodb-native>. |
| 125 | +Keep in mind that the preceding command is to install the driver library, not the database. I taught many workshops and in almost every one of them there would be a person who would confuse installing `mongodb` using npm with installing a database. Don't be this person. We need both, the database and the npm library. I already covered the database installation. If you have any issue with installing the driver, read the details are at <https://mongodb.github.io/node-mongodb-native>. |
126 | 126 |
|
127 | 127 | Don't forget to include the dependency in the `package.json` file as well, either with `-SE` or manually, so that you have the file resembling this: |
128 | 128 |
|
|