{"repo":"mongodb-developer/mongodb-dotnet-example","free":true,"listed":false,"github":"https://github.com/mongodb-developer/mongodb-dotnet-example","clone":"git clone https://github.com/mongodb-developer/mongodb-dotnet-example.git","description":"MongoDB and .NET CRUD example project","language":"C#","stars":33,"topics":["csharp","dotnet-core","dotnet","asp-net-core","mongodb","webdev"],"license":"Apache-2.0","category":"deployment-docker-iac","readme_excerpt":"MongoDB Games API with ASP.NET Core This repository is a minimal .NET Web API that demonstrates CRUD operations against MongoDB for a games domain model. It is designed for developers learning how to connect ASP.NET Core services to MongoDB Atlas or a local MongoDB instance. Features - ASP.NET Core Web API with Swagger UI - MongoDB .NET Driver integration through a dedicated service layer - CRUD endpoints for a Game entity - Startup seed behavior that inserts sample games when the collection is empty - Dev Container support with MongoDB Atlas Local for fast onboarding - GitHub Actions CI with a local MongoDB service container Architecture Overview The API receives HTTP requests in GamesController , delegates data operations to GamesService , and persists documents in MongoDB. Tech Stack - .NET 10 Web API - MongoDB .NET Driver ( MongoDB.Driver ) - Swagger / OpenAPI ( Swashbuckle.AspNetCore ) - MongoDB Atlas Local (dev container), mongo:latest (CI) Prerequisites - .NET SDK 10+ - Docker 24+ (for local MongoDB or dev container workflows) - Optional: MongoDB Atlas cluster connection string Quick Start (Local) 1. Start MongoDB locally (Docker example): 2. Restore and run the API: 3. Verify service health and seeded data: 4. Open the API documentation UI: Expected outcomes: - Health endpoint returns Healthy - GET /api/games returns a JSON array containing sample records (for example Celeste , Hades ) Run in Codespaces / Dev Container 1. Open the repository in GitHub Codespaces (badg","default_branch":null,"files":null,"tree":[],"storefront":"/r/mongodb-developer","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mongodb-developer/mongodb-dotnet-example/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}