https://github.com/Azure-Samples/cosmos-db-nosql-go-quickstart
Quickstart application template for Azure Cosmos DB for NoSQL and Go
https://github.com/Azure-Samples/cosmos-db-nosql-go-quickstart
azd-templates azure azure-dev cosmos-db go
Last synced: 4 months ago
JSON representation
Quickstart application template for Azure Cosmos DB for NoSQL and Go
- Host: GitHub
- URL: https://github.com/Azure-Samples/cosmos-db-nosql-go-quickstart
- Owner: Azure-Samples
- License: mit
- Created: 2023-12-13T17:11:02.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-18T01:01:46.000Z (9 months ago)
- Last Synced: 2024-10-19T13:03:20.157Z (9 months ago)
- Topics: azd-templates, azure, azure-dev, cosmos-db, go
- Language: Bicep
- Homepage: https://learn.microsoft.com/azure/cosmos-db/nosql/quickstart-go
- Size: 265 KB
- Stars: 2
- Watchers: 23
- Forks: 4
- Open Issues: 1
-
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 Go
This is a simple web application to illustrate common basic usage of Azure Cosmos DB for NoSQL with the Azure SDK for Go.
## Prerequisites
- [Docker](https://www.docker.com/)
- [Azure Developer CLI](https://aka.ms/azd-install)
- [Go 1.21 or newer](https://go.dev/dl/)## 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-go-quickstart`) using `azd init`
```bash
azd init --template cosmos-db-nosql-go-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
