Lean Mean Clean Architecture
Presentation, Application and Infrastructure, with one job each. Infrastructure is internal, so it can’t sneak
into places it doesn’t belong.
A Lean Mean Clean Apps template for .NET 10
A .NET 10 template that gives you a tested, layered Lambda function in two commands. Fewer layers than an onion, more than a sandwich.
dotnet new install CleanLambdaFunction.Templatedotnet new cleanlambdafunction --name Acme.Reviews --authorName "Your Name"cd Acme.Reviews && docker compose up -dThree layers, the tests, a Dockerfile and a CI pipeline. Go and tell your team you've been working on it all week.
Lean Mean Clean Architecture
Presentation, Application and Infrastructure, with one job each. Infrastructure is internal, so it can’t sneak
into places it doesn’t belong.
Cold starts, but quicker
Source-generated JSON, Mediator and Mapperly mean no reflection when Lambda wakes your function up.
Tested like it matters
xUnit, Shouldly and a 95% coverage gate. Every test gets its own throwaway SQLite database, so nobody steps on anybody’s toes.
Runs on your laptop
The container image includes the Lambda runtime emulator. Build it, run it, curl it. No AWS account needed until
you’re ready.
Clean Lambda Function is one of five Lean Mean Clean Apps templates. They share the same Application and Infrastructure layers, the same tests and the same pipeline. Only Presentation changes. Like a family, really. Same genes, different haircuts.
Each template gets the same ring logo in its own colour. The rings follow the Clean Architecture diagram, from the entities in the core out to the frameworks and drivers on the edge. Lambda drew amber, which seemed fair for something that wakes up on demand and gets warm quickly. The logos, colours and everything else live in the brand kit.