https://github.com/Azure-Samples/cosmos-db-nosql-java-quickstart
Quickstart application template for Azure Cosmos DB for NoSQL and Java
https://github.com/Azure-Samples/cosmos-db-nosql-java-quickstart
azd-templates azure azure-dev cosmos-db java
Last synced: about 1 year ago
JSON representation
Quickstart application template for Azure Cosmos DB for NoSQL and Java
- Host: GitHub
- URL: https://github.com/Azure-Samples/cosmos-db-nosql-java-quickstart
- Owner: Azure-Samples
- License: mit
- Created: 2023-12-12T20:13:35.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-29T16:43:44.000Z (over 1 year ago)
- Last Synced: 2025-01-29T17:35:01.260Z (over 1 year ago)
- Topics: azd-templates, azure, azure-dev, cosmos-db, java
- Language: Java
- Homepage: https://learn.microsoft.com/azure/cosmos-db/nosql/quickstart-java
- Size: 343 KB
- Stars: 2
- Watchers: 23
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Security: .github/SECURITY.md
Awesome Lists containing this project
README
# Quickstart: Azure Cosmos DB for NoSQL - Azure SDK for Java
This is a simple Spring Web application to illustrate common basic usage of Azure Cosmos DB for NoSQL with the Azure SDK for Java.
## Prerequisites
- [Docker](https://www.docker.com/)
- [Azure Developer CLI](https://aka.ms/azd-install)
- [Java 21](https://learn.microsoft.com/java/openjdk/download#openjdk-21)
## Quickstart
1. Log in to Azure Developer CLI. *This is only required once per-install.*
```bash
azd auth login
```
1. Initialize this template (`cosmos-db-nosql-java-quickstart`) using `azd init`
```bash
azd init --template cosmos-db-nosql-java-quickstart
```
1. Ensure that **Docker** is running in your environment.
1. Use `azd up` to provision your Azure infrastructure and deploy the web application to Azure.
```bash
azd up
```
1. Observed the deployed web application
