Deploying Azure Cosmos DB and Running Node.js Integration
This blog walks you through the steps to set up and interact with Azure Cosmos DB using Node.js, from portal configuration to VS Code execution.
Step 1: Download and Install Node.js

Step 2: Input Resource Group and Name

Step 3: Select Region, Review and Create

Step 4: Go to the Created Resource

Step 5: Open Data Explorer

Step 6: Click 'New Database'

Step 7: Name Your Database

Step 8: Create Container with Name and Partition Key

Step 9: Setup VS Code and Git Bash

Step 10: Run Script Commands

Step 11: Create app.js in VS Code

Step 12: Copy Endpoint and Key from Azure Portal

Step 13: Paste Values into app.js

Step 14: Run node app.js to Insert Data

Step 15: View Inserted Data in Data Explorer

Step 16: View Result in Terminal

Step 17: Another Example of Inserted Data

Step 18: Review Logs or Notes

Step 19: Search and Create Azure Cosmos DB for NoSQL

Step 20: Web App Successfully Launched
Top comments (0)