F.CleanArchitecture.Template
1.2.2
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet new install F.CleanArchitecture.Template@1.2.2
This package contains a .NET Template Package you can call from the shell/command line.
Clean Architecture Solution Template
A dotnet new template that scaffolds a full Clean Architecture solution with Domain, Application, Infrastructure, and WebAPI layers.
Quick Start
# Install the template
dotnet new install F.CleanArchitecture.Template
# Create a new project
dotnet new cleanarch -n MyProject
# Build & run
cd MyProject
dotnet build
dotnet run --project src/MyProject.WebAPI
Project Structure
MyProject/
├── MyProject.sln
└── src/
├── MyProject.Domain/ # Entities, Enums, Interfaces, Common types
├── MyProject.Application/ # Use cases, DTOs, Behaviors, MediatR handlers
├── MyProject.Infrastructure/ # EF Core, Identity, External services
└── MyProject.WebAPI/ # Controllers, Middleware, Program.cs
What's Included
- Domain Layer — Base entities, Result pattern, repository interfaces
- Application Layer — MediatR + CQRS, FluentValidation, AutoMapper
- Infrastructure Layer — EF Core with Identity, JWT token service, Google OAuth, Unit of Work
- WebAPI Layer — Auth controller, global exception handling middleware, seed data
Tech Stack
| Package | Purpose |
|---|---|
| MediatR | CQRS & command/query dispatching |
| FluentValidation | Request validation via pipeline behavior |
| AutoMapper | Object mapping |
| EF Core + Identity | Data access & authentication |
| JWT Bearer | Token-based authentication |
License
MIT
-
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.