Skip to content

About

Production Ready ASP.NET core api template | You write features from the first hour

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Code4mk ASP.NET Core API Template

Start every .NET API production-ready. One command creates an ASP.NET Core Minimal API solution (.NET 10) with the parts every real backend needs already built, tested and documented. You write features from the first hour.

dotnet new install Code4mk.MinimalApi.Template
dotnet new dotnet-api-template -n Acme.Billing -o acme-billing

Why this template

  • Ready for production: structured errors, validated settings, health checks, correlation ids and a production Docker image are part of every new project.
  • Fails fast: missing or invalid environment variables, broken dependency injection and wrong CORS origins stop the app at startup with a clear message. You find out before your users do.
  • Safe by default:
    • strict JSON parsing;
    • response records, so internal fields can't leak;
    • exact CORS origins;
    • no automatic database changes at startup;
    • locked package versions.
  • Consistent across projects: every service built from it has the same structure, error format and conventions. Moving between projects feels like home.
  • Documented: each generated project ships with a developer guide per topic, plus ADRs explaining the big decisions.
  • Pleasant to develop:
    • auto reload with dotnet watch;
    • Swagger UI with JWT sign-in;
    • a local email inbox;
    • unique ports per project, so several projects run side by side.

What's inside

Area Included
API .NET 10 Minimal APIs, feature folders with a service layer, built-in validation, Swagger UI