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: articles/cosmos-db/mongodb/vcore/tutorial-nodejs-web-app.md
+10-5Lines changed: 10 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ For the most straightforward dev environment, we use GitHub Codespaces so that y
45
45
1. Create a new GitHub Codespace on the `main` branch of the [`azure-samples/msdocs-azure-cosmos-db-mongodb-mern-web-app`](https://github.com/azure-samples/msdocs-azure-cosmos-db-mongodb-mern-web-app) GitHub repository.
46
46
47
47
> [!div class="nextstepaction"]
48
-
> [Open this project in GitHub Codespaces](https://github.com/azure-samples/msdocs-azure-cosmos-db-mongodb-mern-web-app/codespaces)
48
+
> [Open this project in GitHub Codespaces](https://github.com/codespaces/new?hide_repo_select=true&ref=main&repo=611024069)
49
49
50
50
1. Wait for the Codespace to start. This startup process can take two to three minutes.
51
51
@@ -165,13 +165,13 @@ Start by running the sample application's API with the local MongoDB container t
165
165
> [!NOTE]
166
166
> The object ids (`_id`) are randomnly generated and will differ from this truncated example output.
167
167
168
-
1. In the **client/** directory, create a new **.env** file.
168
+
1. In the **server/** directory, create a new **.env** file.
169
169
170
-
1. In the **client/.env** file, add an environment variable for this value:
170
+
1. In the **server/.env** file, add an environment variable for this value:
171
171
172
172
| Environment Variable | Value |
173
173
| --- | --- |
174
-
|`CONNECTION_STRING`| The connection string to the Azure Cosmos DB for MongoDB vCore cluster. For now, use `mongodb://localhost`. |
174
+
|`CONNECTION_STRING`| The connection string to the Azure Cosmos DB for MongoDB vCore cluster. For now, use `mongodb://localhost:27017?directConnection=true`. |
@@ -270,8 +270,13 @@ Now, let's validate that the application works seamlessly with Azure Cosmos DB f
270
270
```shell
271
271
exit
272
272
```
273
+
1. In the **client/** directory, create a new **.env** file.
273
274
274
-
1. Open the **client/.env** file again. Then, update the value of the `CONNECTION_STRING` environment variables with the connection string you used with the mongo shell:
275
+
1. In the **client/.env** file, add an environment variable for this value:
276
+
277
+
| Environment Variable | Value |
278
+
| --- | --- |
279
+
| `CONNECTION_STRING` | The connection string to the Azure Cosmos DB for MongoDB vCore cluster. Use the same connection string you used with the mongo shell:
0 commit comments