{"id":26029059,"url":"https://github.com/rabbicse/mehedi-cleanarch-template","last_synced_at":"2026-02-27T16:36:11.572Z","repository":{"id":280786492,"uuid":"943014546","full_name":"rabbicse/mehedi-cleanarch-template","owner":"rabbicse","description":"A .NET 8 Clean Architecture template for building scalable and maintainable applications, following best practices with Domain-Driven Design (DDD), Event-Driven Architecture (EDA), CQRS, EF Core, and Docker support.","archived":false,"fork":false,"pushed_at":"2025-05-08T05:15:57.000Z","size":122,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-29T22:38:30.345Z","etag":null,"topics":["clean-architecture","cqrs","csharp","dependency-injection","domain-driven-design","dotnet-core","entity-framework-core","event-sourcing","mediatr","microservices","solid","unit-of-work-pattern"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rabbicse.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-03-05T03:25:11.000Z","updated_at":"2025-05-08T05:16:00.000Z","dependencies_parsed_at":"2025-03-25T08:29:30.196Z","dependency_job_id":"94e0e1fa-d353-4a44-abe1-2c0ac2e058e6","html_url":"https://github.com/rabbicse/mehedi-cleanarch-template","commit_stats":null,"previous_names":["rabbicse/mehedi-cleanarch-template"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rabbicse/mehedi-cleanarch-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rabbicse%2Fmehedi-cleanarch-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rabbicse%2Fmehedi-cleanarch-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rabbicse%2Fmehedi-cleanarch-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rabbicse%2Fmehedi-cleanarch-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rabbicse","download_url":"https://codeload.github.com/rabbicse/mehedi-cleanarch-template/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rabbicse%2Fmehedi-cleanarch-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29904590,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T14:46:13.553Z","status":"ssl_error","status_checked_at":"2026-02-27T14:46:10.522Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clean-architecture","cqrs","csharp","dependency-injection","domain-driven-design","dotnet-core","entity-framework-core","event-sourcing","mediatr","microservices","solid","unit-of-work-pattern"],"created_at":"2025-03-06T17:29:42.089Z","updated_at":"2026-02-27T16:36:11.544Z","avatar_url":"https://github.com/rabbicse.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build](https://github.com/rabbicse/mehedi-cleanarch-template/actions/workflows/publish-template.yml/badge.svg)](https://github.com/rabbicse/mehedi-cleanarch-template/actions/workflows/publish-template.yml)\n[![CodeQL](https://github.com/rabbicse/mehedi-cleanarch-template/actions/workflows/codeql.yml/badge.svg)](https://github.com/rabbicse/mehedi-cleanarch-template/actions/workflows/codeql.yml)\n[![Nuget](https://img.shields.io/nuget/v/Mehedi.CleanArchitecture.Template)](https://www.nuget.org/packages/Mehedi.CleanArchitecture.Template/)\n[![Nuget](https://img.shields.io/nuget/dt/Mehedi.CleanArchitecture.Template)](https://www.nuget.org/packages/Mehedi.CleanArchitecture.Template/)\n\n# .NET Core Clean Architecture Template\n\nThe goal of this template is to provide a straightforward and efficient approach to enterprise API development, leveraging the power of Clean Architecture and ASP.NET Core. Using this template, you can effortlessly create scalable and maintainable APIs while adhering to Clean Architecture principles.\n\nGetting started is easy—simply install the .NET template (see below for full details).\n\nIf you find this project useful, please give it a star. Thanks! ⭐\n\n## Features\n\n- **Clean Architecture**: Separation of concerns with modular layers.\n- **DDD**: Domain Driven Design.\n- **.NET 8**: Built with the latest .NET framework.\n- **CQRS \u0026 Mediator Pattern**: Uses MediatR for better request handling.\n- **Dependency Injection**: Follows best practices for IoC.\n- **Unit Testing**: Pre-configured with xUnit and Moq.\n- **Database Support**: Works with Entity Framework Core and supports SQL Server and PostgreSQL.\n- **Docker Support**: Includes Dockerfile for easy deployment.\n- **Swagger UI**: Integrated for API documentation.\n\n## Getting Started\n\n### Prerequisites\n\n- .NET 8 SDK\n- Docker\n- SQL Server or PostgreSQL\n\n## Project Structure\n\n```\nMehedi.CleanArch.Template/\n│-- src/\n│   ├── Application/     # Business logic, use cases, MediatR handlers\n│   ├── Domain/          # Entities, Aggregates, Value Objects\n│   ├── Infrastructure/  # Database, Repositories, External services\n│   ├── Presentation/             # ASP.NET Core API project\n│      │-- Dockerfile           # Docker configuration\n│-- tests/\n│   ├── UnitTests/       # Unit tests for business logic\n│   ├── IntegrationTests/# Integration tests\n│-- README.md            # Project documentation\n```\n\n## Installation \u0026 Getting Started\n### List all templates\nList all the dotnet core templates with the following command.\n```bash\ndotnet new list\n```\n\n### Install **cleanarch** template\n```bash\ndotnet new install Mehedi.CleanArchitecture.Template\n```\n\n### Create New project\nWrite the following command to create new .NET project with `cleanarch` template.\n```bash\ndotnet new cleanarch -n MyProject -D postgresql\n```\n\nThen just run project with the following command.\n```bash\ndotnet run --project ./src/Presentation/MyProject.Api.csproj\n```\n\n## Contributing\n\nContributions are welcome! Feel free to submit a pull request.\n\n## License\n\nThis project is licensed under the MIT License. See the LICENSE file for more details.\n\n## Contact\n\nFor any inquiries, reach out to [Mehedi](https://github.com/rabbicse).\n\n## References\n- [dotnet-runtime](https://github.com/dotnet/runtime)\n- [ardalis/CleanArchitecture](https://github.com/ardalis/CleanArchitecture)\n- [jasontaylordev/CleanArchitecture](https://github.com/jasontaylordev/CleanArchitecture)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frabbicse%2Fmehedi-cleanarch-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frabbicse%2Fmehedi-cleanarch-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frabbicse%2Fmehedi-cleanarch-template/lists"}