GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — add changes :point_up_2: · xiaoruiguo/fullstack-javascript@f4a58e8

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • chapter7
    • chapter7.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎chapter7/chapter7.md‎

Copy file name to clipboardExpand all lines: chapter7/chapter7.md
+3-3Lines changed: 3 additions & 3 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ MongoDB is a NoSQL document-store database. It is scalable and performant. It ha
2424

2525
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).
2626

27-
<span id="mongodb-shell" class="anchor"><span id="shell" class="anchor"></span></span>MongoDB Shell
27+
MongoDB Shell
2828
===================================================================================================
2929

3030
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 })
118118
MongoDB Native Driver
119119
=====================
120120

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:
122122

123123
`$ npm install mongodb`
124124

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>.
126126

127127
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:
128128

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.