hello-world-cosmosdb-dotnet

Hello World CosmosDB with .NET

📚 A repository to explore and learn Azure Cosmos DB with C# and .NET.

wakatime Maintainability Test Coverage CodeFactor GitHub license GitHub last commit Codacy Badge


About

This repository demonstrates the integration of Azure Cosmos DB with a .NET application, showcasing fundamental features like data modeling, querying, and transaction processing using the SDK for C#.


Features


Prerequisites

  1. Azure Subscription: Required to create and access Cosmos DB.
  2. .NET SDK: Available for download here.
  3. Cosmos DB Emulator (optional): For local development, download it here.

Setup Instructions

  1. Clone this repository:
    git clone https://github.com/GuilhermeStracini/hello-world-cosmosdb-dotnet.git
    
  2. Navigate to the project directory:
    cd hello-world-cosmosdb-dotnet
    
  3. Restore the project dependencies:
    dotnet restore
    
  4. Update the appsettings.json file with your Cosmos DB connection details.
  5. Run the application:
    dotnet run
    

Resources


License

This project is licensed under the MIT License.


Contributing

Contributions are welcome! Feel free to open issues or submit pull requests to improve this repository.