ZMA.Small.Template
1.0.2
dotnet new install ZMA.Small.Template@1.0.2
This package contains a .NET Template Package you can call from the shell/command line.
ZMA Small Template
ZMA (Zohaib Modular Architecture) — Small Tier
A monolith Clean Architecture scaffold with 4 layers: Domain, Application, Infrastructure, Presentation.
What's Included
- Domain: Entities (Product, Order), Enums (OrderStatus, UserRole)
- Application: DTOs (Create/Update), Service Interfaces & Implementations, Custom Exceptions
- Infrastructure: EF Core DbContext, Repositories (ProductRepository, OrderRepository)
- Presentation: ASP.NET Core Web API controllers (ProductController, OrderController)
- Pre-configured DI wiring with
UseInMemoryDatabase - Full CRUD endpoints for Product and Order
Usage
# Install the template
dotnet new install ZMA.Small.Template
# Scaffold a project
dotnet new zma-small -n MyApp
# Run it
cd MyApp
dotnet run --project MyApp.Presentation
Architecture
Application/ DTOs, Interfaces, Services, Exceptions
Domain/ Entities, Enums
Infrastructure/ Persistence (EF Core), Repositories
Presentation/ Controllers, Models
Learn More
- GitHub: https://github.com/zohaib-khan-786/ZK-Hybrid-Architecture
- CLI Tool:
dotnet tool install -g ZMA.Toolthen runzma
-
net8.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.