TVE.CleanArchitecture.Templates 1.1.0

dotnet new install TVE.CleanArchitecture.Templates@1.1.0
                    
This package contains a .NET Template Package you can call from the shell/command line.

TVE.CleanArchitecture.Templates

Template package cho dotnet new, Visual Studio ("Create a new project") và JetBrains Rider ("New Solution → More Templates").

Sinh ra một solution .NET 9 theo Clean Architecture + DDD, kèm SPA Angular 20.

Cài đặt

dotnet new install TVE.CleanArchitecture.Templates

Sử dụng

dotnet new tve-clean -n Acme.Crm

Tên truyền vào -n trở thành tiền tố namespace của mọi project: Acme.Crm.Domain, Acme.Crm.Application, Acme.Crm.Infrastructure, Acme.Crm.Api, Acme.Crm.WebApp… Hãy dùng tên hợp lệ cho namespace C# (PascalCase, có thể có dấu chấm).

Tham số Mặc định Ý nghĩa
--frontend true Sinh kèm SPA Angular 20 (<name>.WebApp)
--docker true Sinh docker-compose.yml (PostgreSQL)
--docs true Sinh docs/, CLAUDE.md, .claude/skills
--ci true Sinh .github/workflows/ci.yml
--http-port 5080 Cổng HTTP của API
--https-port 7280 Cổng HTTPS của API
--db-port 5544 Cổng host của PostgreSQL

Xem toàn bộ tham số: dotnet new tve-clean -?

Trong solution sinh ra có gì

  • *.Shared, *.Domain, *.Application, *.Infrastructure, *.Api — hướng phụ thuộc một chiều, Domain/Application không tham chiếu EF Core hay ASP.NET Core (kiểm tra bằng ArchUnitNET).
  • CQRS qua TVE.PureCQRS, Result/Error thay vì exception cho lỗi nghiệp vụ, Specification pattern.
  • JWT + refresh token, phân quyền {module}:{action}, outbox cho domain event.
  • EF Core + PostgreSQL, soft delete bằng global query filter, seed dữ liệu demo chỉ ở Development.
  • *.ArchitectureTests, *.UnitTests, *.IntegrationTests.
  • Angular 20: standalone components, signals, OnPush, PrimeNG, Tailwind, ngx-translate, demo mode offline.

Gỡ cài đặt

dotnet new uninstall TVE.CleanArchitecture.Templates

This package has 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.1.0 108 9/3/2026
1.0.0 138 8/19/2026