Skip to content

Commit 5b2607f

Browse files
Merge pull request #233210 from seesharprun/patch-1
Cosmos DB | Update tutorial-nodejs-web-app.md
2 parents 4adde57 + 00ec743 commit 5b2607f

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

articles/cosmos-db/mongodb/vcore/tutorial-nodejs-web-app.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ For the most straightforward dev environment, we use GitHub Codespaces so that y
4545
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.
4646

4747
> [!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)
4949
5050
1. Wait for the Codespace to start. This startup process can take two to three minutes.
5151

@@ -165,13 +165,13 @@ Start by running the sample application's API with the local MongoDB container t
165165
> [!NOTE]
166166
> The object ids (`_id`) are randomnly generated and will differ from this truncated example output.
167167
168-
1. In the **client/** directory, create a new **.env** file.
168+
1. In the **server/** directory, create a new **.env** file.
169169
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:
171171
172172
| Environment Variable | Value |
173173
| --- | --- |
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`. |
175175
176176
```env
177177
CONNECTION_STRING=mongodb://localhost:27017?directConnection=true
@@ -270,8 +270,13 @@ Now, let's validate that the application works seamlessly with Azure Cosmos DB f
270270
```shell
271271
exit
272272
```
273+
1. In the **client/** directory, create a new **.env** file.
273274
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:
275280
276281
```output
277282
CONNECTION_STRING=<your-connection-string>

0 commit comments

Comments
 (0)