Skip to content
New Project
Templates
Template name
Templates

Azure CosmosDB - Next.js Starter

This is a Next.js project that uses @azure/cosmos JS SDK to connect to a Azure Cosmos DB database.

DeployView Demo
Screenshot of an Azure Cosmos DB Todo starter application
Owner
  • Azure
Repository
  • azurecosmosdb-vercel-starter
Use Cases
  • Starter
Stack
  • Next.js
  • Chakra
Database
  • Azure CosmosDB
DeployView Demo

Azure Cosmos DB Starter – Todo App

A simple Todo App built on Next.js and Azure Cosmos DB, deployed on Vercel with the Vercel + Azure Cosmos DB integration.

Deployment Instructions

Pre requisites

Azure Cosmos DB account, database and container. Please make sure the Partition Key for container is '/id'.

Steps

  • Install dependencies from the root folder - npm install

  • Rename sample.env to .env and set appropriate variables.

    • COSMOSDB_CONNECTION_STRING : This is the connection string for Azure Cosmos DB.
    • COSMOSDB_DATABASE_NAME : This is the name of the database to store todos.
    • COSMOSDB_CONTAINER_NAME : This is the name of the container to store todos.

You can obtain the connection string by navigating to your Azure Cosmos DB account page's key blade, and select Primary connection string. Copy the value to use.

  • Start the project - npm run dev

Demo

https://cosmosdb-vercel-starter.vercel.app/

Vercel + Azure Cosmos DB Integration

https://vercel.com/integrations/azurecosmosdb

Related Templates

  • Next.js Enterprise Boilerplate thumbnail

    Next.js Enterprise Boilerplate

    Enterprise-grade Next.js boilerplate built with Tailwind CSS, Radix UI, TypeScript, ESLint, Prettier, Jest, Playwright, Storybook, etc.

  • Vercel Shop thumbnail

    Vercel Shop

    Production-ready Shopify storefront on Next.js

Related Integrations

  • Azure Cosmos DB

    Integration with Vercel made easy

License
  • View License