Hmz.Template.Backend.ModularMonolith
0.1.3
dotnet new install Hmz.Template.Backend.ModularMonolith@0.1.3
Hmz Modular Monolith Template
This folder is the canonical dotnet new template source for the Hmz .NET 10 backend.
Layout
modular-monolith/
├── Hmz.Template.Backend.ModularMonolith.csproj # NuGet template pack project
├── README.md # package README
└── content/ # generated project content
├── .template.config/template.json
├── Directory.Build.props
├── Directory.Packages.props
├── Hmz.Template.Backend.slnx
├── src/
├── tests/
└── docs/
The content folder is the source of truth for this template. Do not create another copy under templates/.
The generated solution currently consumes the stable package Hmz.Core.SharedKernel 0.1.10.
Publish that exact package version to a configured NuGet source before
generating a project for normal use.
The current generated profile includes Logto JWT authentication, local UserManagement, and the optional application permission matrix. The matrix is not a requirement for every product generated from this template: API-key authentication, another identity provider, or an authentication-only API may remove the permission catalog, role-matrix endpoints, and permission authorization bundle together after generation.
The generated content is intentionally infrastructure-neutral. It does not include release workflows, Coolify/VPS scripts, or a prescribed migration runner. Add those to the generated application after implementation, based on the selected hosting platform and operational requirements.
Pack
From the repository root:
dotnet pack .\modular-monolith\Hmz.Template.Backend.ModularMonolith.csproj `
--configuration Release `
-p:PackageVersion=0.1.2 `
--output .\artifacts\template-pack
Install and generate
$package = Get-ChildItem .\artifacts\template-pack\Hmz.Template.Backend.ModularMonolith.*.nupkg |
Sort-Object LastWriteTime -Descending |
Select-Object -First 1
dotnet new uninstall Hmz.Template.Backend.ModularMonolith
dotnet new install $package.FullName --force
dotnet new hmz-modular-monolith `
--name Acme.Ordering `
--output C:\Repos\Acme.Ordering `
--force
After generation, remove unused bundles from the generated project only. Never delete modules from this content source unless the template itself is intentionally changed.
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.