CleanArch.Pro 1.0.1

dotnet new install CleanArch.Pro@1.0.1
                    
This package contains a .NET Template Package you can call from the shell/command line.

# ๐Ÿš€ 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.

Version Downloads Last Updated
1.0.1 134 4/22/2026
1.0.0 111 4/22/2026