Skip to content
LlanSysPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

36 Commits

Folders and files

Repository files navigation

LlanSacco

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.

What Is Included

  • .NET 10 backend with Clean Architecture boundaries.
  • Modular monolith structure with bounded-context feature folders.
  • Current bounded contexts: IAM, Banking, HR, and Shared.
  • 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 DBContext types, 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.

Clone And Rename

Rename a cloned repository before its first application run or deployment:

cd path/to/LlanSacco
.\scripts\rename-template.ps1 -NewName InsurHub -NamespacePrefix IH

This 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 -WhatIf

Read Renaming the template before cloning for a real product, especially the DataProtection:ApplicationName warning.

Local Development Quick Start

  1. Start Docker Desktop.
  2. Run the local platform setup from the repository root:
.\scripts\setup-local-platform.ps1
  1. Configure remaining required secrets (the setup script sets the PostgreSQL connection string) with dotnet user-secrets.
  2. Run LS.Api and LS.UI.Blazor from Visual Studio.
  3. Open Mailpit at http://localhost:8036 to 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.

Verification

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=false

Useful additional checks:

dotnet test tests/LS.Tests.Unit/LS.Tests.Unit.csproj --no-restore -p:UseSharedCompilation=false
.\scripts\test-local-messaging.ps1

Azure And Production Configuration

Azure 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_ENABLED is set to true.

See:

Documentation Map

Clone Readiness

LlanSacco is reusable now for local-first application development when you:

  1. Clone and rename before first run.
  2. Configure local secrets and SQL.
  3. Run the local Docker platform.
  4. 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.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages