LlanSacco is a reusable enterprise .NET template for building production-minded systems from a modular monolith starting point.
It is designed to be cloned, renamed, configured, and extended into a real application without redoing the core plumbing every time.
.NET 10backend with Clean Architecture boundaries.- Modular monolith structure with bounded-context feature folders.
- Current bounded contexts:
IAM,Banking,HR, andShared. - API, Blazor Web UI, shared Razor Class Library, MAUI shell, Application, Domain, Infrastructure, Persistence, and SharedKernel projects.
- IAM/Auth baseline with local accounts, JWT/cookie-compatible flows, refresh tokens, MFA/TOTP, sessions, lockout, permission authorization, grant/revoke access, profile image upload, and inactivity handling.
- EF Core persistence with per-context
DBContexttypes, tenant filters, soft delete, audit stamping, explicit configurations, repositories, unit of work, and migration bundles. - MassTransit with EF outbox, RabbitMQ local transport, and Azure Service Bus production transport configuration.
- Local Docker platform for RabbitMQ, Redis, Mailpit, Azurite, PostgreSQL 17, and optional Seq.
- Output caching, response compression, rate limiting, health checks, feature flags, SignalR baseline, QuestPDF reporting abstraction, and payment gateway abstraction.
- Architecture tests and naming/convention guardrails that run in CI.
Rename a cloned repository before its first application run or deployment:
cd path/to/LlanSacco
.\scripts\rename-template.ps1 -NewName InsurHub -NamespacePrefix IHThis produces names such as IH.Domain, IH.Application, and IH.Api.
Use -WhatIf first to preview changes:
.\scripts\rename-template.ps1 -NewName InsurHub -NamespacePrefix IH -WhatIfRead Renaming the template before cloning for a real product, especially the DataProtection:ApplicationName warning.
- Start Docker Desktop.
- Run the local platform setup from the repository root:
.\scripts\setup-local-platform.ps1- Configure remaining required secrets (the setup script sets the PostgreSQL connection string) with
dotnet user-secrets. - Run
LS.ApiandLS.UI.Blazorfrom Visual Studio. - Open Mailpit at
http://localhost:8036to inspect captured local emails.
The local setup uses:
- RabbitMQ for messaging.
- Redis for distributed cache.
- Mailpit for email capture.
- Azurite for Blob-compatible profile image storage.
- PostgreSQL 17 container on
localhost:5436(the only supported database).
See Local Platform and Environment Configuration Checklist.
Before opening a PR, run:
dotnet build src\Backend\Api\LS.Api\LS.Api.csproj --no-restore -p:UseSharedCompilation=false
dotnet test tests\LS.Tests.Architecture\LS.Tests.Architecture.csproj --no-restore -p:UseSharedCompilation=falseUseful additional checks:
dotnet test tests/LS.Tests.Unit/LS.Tests.Unit.csproj --no-restore -p:UseSharedCompilation=false
.\scripts\test-local-messaging.ps1Azure deployment support is present but intentionally gated.
- Keep local development on user-secrets plus Docker services.
- Keep production secrets in Azure Key Vault or App Service settings.
- Prefer managed identity for Azure Blob, Key Vault, Redis, and App Service integration.
- Enable deployment only when the GitHub repository variable
AZURE_DEPLOYMENT_ENABLEDis set totrue.
See:
- Architecture Plan
- Execution Strategy
- Feature Folder Convention
- Persistence Standards
- UI To Backend Flow
- Configuration Code Conventions
- Deployment Options
- Pull Request Guidelines
LlanSacco is reusable now for local-first application development when you:
- Clone and rename before first run.
- Configure local secrets and SQL.
- Run the local Docker platform.
- Keep product-specific modules outside the base template until cloned.
Some provider-dependent capabilities still need environment-specific certification in the target application:
- Entra ID AppUser linking flow.
- Passkeys/WebAuthn.
- Real Stripe/M-Pesa credentials, callbacks, idempotency, and reconciliation.
- Azure Service Bus smoke test.
- Azure deployment smoke test after a valid Azure subscription is available.
These are tracked in PLAN.md, so downstream projects can decide whether to complete them in the template first or activate them after cloning.