Skip to content

Azure-Samples/cosmos-db-mongodb-nodejs-quickstart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quickstart: Azure Cosmos DB for MongoDB - Node.js

This is a simple Express web application to illustrate common basic usage of Azure Cosmos DB for MongoDB with Node.js

Prerequisites

Quickstart

  1. Log in to Azure Developer CLI. This is only required once per-install.

    azd auth login
  2. Initialize this template (cosmos-db-mongodb-nodejs-quickstart) using azd init.

    azd init --template cosmos-db-mongodb-nodejs-quickstart
  3. (Optional) Select either vcore or request-unit account type using azd env set.

    azd env set "MONGODB_DEPLOYMENT_TYPE" "vcore"
    azd env set "MONGODB_DEPLOYMENT_TYPE" "request-unit"
  4. Ensure that Docker is running in your environment.

  5. Use azd up to provision your Azure infrastructure and deploy the web application to Azure.

    azd up
  6. Observed the deployed web applications.

    Screenshot of the deployed JavaScript web application.

    Screenshot of the deployed TypeScript web application.

About

Quickstart application template for Azure Cosmos DB for MongoDB and Node.js

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Contributors 5