ModularMonolith.Solution.Template
1.0.0.4-beta3
dotnet new install ModularMonolith.Solution.Template::1.0.0.4-beta3
Modular Monolith Solution Template for ASP.NET Core
Technologies
- .NET 9
- Light Framework
- Entity Framework Core 9
- Mapster
- FluentValidation
- SignalR
- Serilog
- Redis
- RabbitMQ
Getting Started
The easiest way to get started is to install the .NET template:
dotnet new install ModularMonolith.Solution.Template
To create a ASP.NET Core Web API solution:
dotnet new mm-sln -n YourProjectName
To create module projects template:
dotnet new mm -n YourModuleName
To create module projects with clean architecture template:
dotnet new ca-mm -n YourModuleName
Migrate data with DB Provider before run:
PostgreSQL
dotnet run -p src\Migrations\PostgreSQL\PostgreSQL.csproj
MSSQL
dotnet run -p src\Migrations\MSSQL\MSSQL.csproj
Or use In Memory Database, you will need to update WebApi/appsettings.json as follows:
"DbProvider": "InMemory",
Overview
Building Blocks shared projects
This will contain common entities, enums, exceptions, interfaces, types, rules, etc... can dependent from modules
- Authorization
- Shared
- Infrastructure
Contracts project
This projects contain share resources for other modules can reference.
- *.Contracts
Modules project
This projects contains all owned module SOLID. It is dependent on the contracts projects. Modules projects cannot call directly, if it need access resource from other module, it only access other module.Contracts
Server & Client
- WebApi
- ClientApp (MudBlazor)
- AppHost (Aspire soon)
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.0.0.4-beta3 | 108 | 7/17/2025 |
* Add new structure projects