https://github.com/azure-samples/cosmos-db-apache-cassandra-dotnet-samples
Sample .NET applications for Azure Cosmos DB for Apache Cassandra
https://github.com/azure-samples/cosmos-db-apache-cassandra-dotnet-samples
apache-cassandra azure cosmos-db dotnet
Last synced: 6 months ago
JSON representation
Sample .NET applications for Azure Cosmos DB for Apache Cassandra
- Host: GitHub
- URL: https://github.com/azure-samples/cosmos-db-apache-cassandra-dotnet-samples
- Owner: Azure-Samples
- License: mit
- Created: 2023-09-20T12:37:01.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-26T14:10:52.000Z (over 2 years ago)
- Last Synced: 2025-03-14T07:45:55.954Z (over 1 year ago)
- Topics: apache-cassandra, azure, cosmos-db, dotnet
- Language: C#
- Homepage: https://learn.microsoft.com/azure/cosmos-db/cassandra/manage-data-dotnet-core
- Size: 13.7 KB
- Stars: 0
- Watchers: 22
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE.md
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Azure Cosmos DB for Apache Cassandra client library samples for .NET
[](https://github.com/Azure-Samples/cosmos-db-apache-cassandra-dotnet-samples/actions/workflows/validate.yml)
## Getting started
This repo has a [devcontainer](https://containers.dev) environment making it easy to get started.
[](https://codespaces.new/Azure-Samples/cosmos-db-apache-cassandra-dotnet-samples?quickstart=1)
### Run the app
Configure your Azure Cosmos DB credentials as environment variables.
```bash
export COSMOS_ENDPOINT=""
export COSMOS_KEY=""
```
> **💡 TIP**: If you don't have an Azure Cosmos DB account, [create a free account](https://cosmos.azure.com/try/).
Run the quickstart sample app using the [`CassandraCSharpDriver`](https://www.nuget.org/packages/CassandraCSharpDriver/) package from NuGet.
```bash
cd 001-quickstart/
dotnet add package CassandraCSharpDriver
dotnet run
```
### Validate any changes you make
If you change the code, run the formatter and test the build.
```bash
dotnet format
dotnet build
```