Work in progress...
dotnet new templates for building modular monoliths in C#, published to nuget.org as the
Modulith package.
dotnet new modulith scaffolds a .NET solution: a Blazor Server host plus one vertical slice
per feature, each owning its own Domain/Application/Infrastructure/Web projects, its own
EF Core DbContext, and its own Postgres schema. Features cannot reference each other, and
architecture tests enforce that. dotnet new modulith-feature adds another slice to an existing
solution — eight projects, fully wired.
Use it when a set of microservices would be premature but you still want the module boundaries that make splitting one out later a mechanical job.
Heavily inspired by:
Test the package:
dotnet new install working/content/modulithPackage:
cd working
dotnet pack
dotnet new install bin/Release/Modulith.*.nupkg