@@ -20,8 +20,8 @@ Create a MongoDB Cluster
20
20
21
21
.. step:: Set Up a Free Tier Cluster in Atlas
22
22
23
- To set up your Atlas free cluster required for this Quick Start, complete the guidei
24
- on :guides:`MongoDB Atlas Setup </atlas/account>`.
23
+ To set up your Atlas free cluster required for this Quick Start, complete the guide
24
+ :guides:`MongoDB Atlas Setup </atlas/account>` guide .
25
25
26
26
After completing the steps in the Atlas guide, you have a new MongoDB
27
27
cluster deployed in Atlas, a new database user, and
@@ -41,12 +41,13 @@ Create a MongoDB Cluster
41
41
42
42
Save this file to a safe location for use in the next step.
43
43
44
- .. step:: Set Your Connection String
44
+ .. step:: Add Your Connection String to an Environment Variable
45
45
46
46
Run the following code in your shell to save the MongoDB connection string
47
47
in your copy buffer from the previous step to an
48
- environment variable. This method is safer than including your credentials in your source
49
- code.
48
+ environment variable. Storing your connection string in an
49
+ environment variable keeps your credentials separate from your source code. This
50
+ separation makes it less likely to expose your credentials when sharing your code.
50
51
51
52
.. code-block:: bash
52
53
@@ -55,7 +56,7 @@ Create a MongoDB Cluster
55
56
.. important::
56
57
57
58
Make sure to replace the ``<username>`` and ``<password>`` sections of the connection
58
- string with the username and password of your Atlas user.
59
+ string with the username and password of your database user.
59
60
60
61
Set Up Your Project
61
62
-------------------
@@ -65,7 +66,7 @@ Set Up Your Project
65
66
66
67
.. step:: Create the Project
67
68
68
- Create a new directory and initialize your project with the ``dotnet new`` command,
69
+ Create a new directory and use the ``dotnet new`` command to initialize your project
69
70
as follows:
70
71
71
72
.. code-block:: shell
@@ -91,7 +92,7 @@ Query Your MongoDB Cluster from Your Application
91
92
.. procedure::
92
93
:style: connected
93
94
94
- .. step:: Create the Code File
95
+ .. step:: Add the Sample Code
95
96
96
97
Open the file named ``Program.cs`` in the base directory of your project. Copy the
97
98
following sample code into ``Program.cs``:
@@ -100,7 +101,7 @@ Query Your MongoDB Cluster from Your Application
100
101
:language: csharp
101
102
:dedent:
102
103
103
- .. step:: Run an Atlas Query
104
+ .. step:: Query the Sample Data
104
105
105
106
Run the following command in your shell. It should print the plot of the movie
106
107
"Back to the Future" from the sample dataset:
0 commit comments