CleanArch.Pro
1.0.1
dotnet new install CleanArch.Pro@1.0.1
# ๐ CleanArch.Pro โ Production-Ready Clean Architecture Template for .NET
A powerful and reusable **Clean Architecture template** for .NET that helps developers bootstrap scalable, maintainable, and enterprise-grade applications in seconds using the dotnet new CLI.
---
## ๐ฏ Why CleanArch.Pro?
Setting up Clean Architecture repeatedly is time-consuming and error-prone.
**CleanArch.Pro solves this by:**
* Eliminating boilerplate setup
* Providing a standardized structure
* Enforcing separation of concerns
* Accelerating project startup time
๐ Focus on building features, not architecture setup.
---
## โจ Key Features
### ๐งฑ Layered Architecture
* **API Layer** โ Entry point (Controllers, Middleware)
* **Application Layer** โ Business logic, interfaces, services
* **Domain Layer** โ Core entities, rules, abstractions
* **Infrastructure Layer** โ Database, external services
---
### โก Out-of-the-box Setup
* Dependency Injection configured
* Clean folder structure
* Ready-to-run Web API
* Swagger integrated
---
### ๐งฉ Design Patterns Included
* Repository Pattern
* Unit of Work
* Service Layer abstraction
---
### ๐ Developer Experience
* CLI-based project creation
* Consistent naming conventions
* Minimal setup required
---
## ๐ฆ Installation
Install the template globally:
dotnet new install CleanArch.Pro
---
## ๐ Usage
Create a new project:
dotnet new clean-arch-pro -n MyApp
cd MyApp
Run the application:
dotnet run
---
## ๐ Access Swagger UI
After running the app, open:
https://localhost:xxxx/swagger
๐ Explore API endpoints instantly.
---
## ๐ Project Structure
MyApp/
โโโ MyApp.API
โโโ MyApp.Application
โโโ MyApp.Domain
โโโ MyApp.Infrastructure
โโโ MyApp.sln
---
## ๐ง Architecture Overview
### ๐น Domain Layer
* Core business entities
* Business rules
* No external dependencies
---
### ๐น Application Layer
* Use cases
* Interfaces (IRepository, IService)
* DTOs & business logic orchestration
---
### ๐น Infrastructure Layer
* Database access (EF Core or others)
* External integrations
* Repository implementations
---
### ๐น API Layer
* Controllers
* Middleware (Exception handling)
* Dependency injection setup
---
## ๐ Request Flow
Client โ API โ Application โ Domain โ Infrastructure โ Database
---
## ๐ ๏ธ Technologies Used
* .NET 8 / 9 / 10
* ASP.NET Core Web API
* Dependency Injection
* Swagger (OpenAPI)
---
## ๐งช Testing the Template
dotnet new clean-arch-pro -n TestApp
cd TestApp
dotnet build
dotnet run
---
## โ๏ธ Customization
You can easily extend:
* Add Authentication (JWT)
* Integrate logging (Serilog)
* Add caching layer
* Implement CQRS
* Add MediatR
---
## ๐ Roadmap
* ๐ JWT Authentication
* ๐ Logging (Serilog)
* โก Caching support
* ๐งต CQRS + MediatR
* ๐งช Unit test project template
* ๐ณ Docker support
---
## โ ๏ธ Requirements
* .NET SDK 8.0 or higher
* Visual Studio / VS Code (optional)
---
## ๐ License
This project is licensed under the MIT License.
---
## ๐จโ๐ป Author
**Abhishek**
.NET Developer
---
## โญ Support & Feedback
If you found this useful:
* โญ Star the repository
* ๐ Share with your network
* ๐ฌ Provide feedback / suggestions
---
## ๐ Quick Start Summary
dotnet new install CleanArch.Pro
dotnet new clean-arch-pro -n MyApp
cd MyApp
dotnet run
---
## ๐ก Final Note
CleanArch.Pro is designed to help developers:
* Start faster
* Build cleaner systems
* Maintain scalable architecture
๐ Built for developers who care about structure, clarity, and long-term maintainability.
---
-
net10.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.