@@ -54,20 +54,20 @@ project's files:
54
54
55
55
.. code-block:: none
56
56
57
- cd node_quickstart
57
+ cd node_quickstart
58
58
59
59
Next, set up NPM for your project by running the following command.
60
60
This command creates a file called ``package.json``:
61
61
62
62
.. code-block:: none
63
63
64
- npm init -y
64
+ npm init -y
65
65
66
66
.. note:: Why the -y?
67
67
68
- If you specify the ``-y`` option in the command, NPM automatically
69
- accepts the default values for the command. Omit the ``-y`` flag to
70
- interactively select your project settings.
68
+ If you specify the ``-y`` option in the command, NPM automatically
69
+ accepts the default values for the command. Omit the ``-y`` flag to
70
+ interactively select your project settings.
71
71
72
72
Add MongoDB as a Dependency
73
73
~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -78,7 +78,7 @@ Use the following command to instruct NPM to download and install the
78
78
79
79
.. code-block:: none
80
80
81
- npm install mongodb
81
+ npm install mongodb
82
82
83
83
This command downloads ``mongodb`` package and dependencies required for its
84
84
installation and saves them into a directory called ``node_modules`` in
@@ -98,10 +98,11 @@ Set up a Free Tier Cluster in Atlas
98
98
After installing the Node MongoDB driver, create a MongoDB instance to store
99
99
and manage your data. Complete the
100
100
:atlas:`Get Started with Atlas </getting-started?tck=docs_driver_nodejs>` guide
101
- to set up a new Atlas account, free tier cluster (MongoDB instance), load
102
- datasets, and interact with the data.
101
+ to set up a new Atlas account and a free tier cluster (MongoDB instance).
102
+ Then, complete the :atlas:`Load Sample Data into Your Atlas Cluster </sample-data/?tck=docs_driver_nodejs>`
103
+ guide to insert sample data into your cluster.
103
104
104
- After completing the steps in the Atlas guide , you should have a new MongoDB
105
+ After completing the steps in these Atlas guides , you should have a new MongoDB
105
106
cluster deployed in Atlas, a new database user, and sample datasets loaded
106
107
into your cluster.
107
108
@@ -176,7 +177,7 @@ Run the sample code with the following command from your command line:
176
177
177
178
.. code-block:: none
178
179
179
- node index.js
180
+ node index.js
180
181
181
182
When you run the command, the sample code should output the details of the
182
183
movie which resembles the following:
0 commit comments