Skip to main content
Version: 11.0

Introduction

Milvasoft.Templates is a set of dotnet new templates for creating API projects. They generate a ready-made solution built on the Milvasoft libraries and Onion Architecture.

The generated project is integrated with PostgreSQL and Redis, but you can change whatever you need.

Who it is for​

.NET developers who want to start a new API with a working architecture, authentication, logging, caching, tests and Docker images already in place, instead of setting them up by hand.

Templates in the package​

TemplateShort nameWhat it creates
Milvonion Api TemplatemilvonionA full API solution with Onion Architecture and EF Core with PostgreSQL.
Milvasoft MediatR CRUD Operationsmediatr-crudMediatR-based CRUD commands, queries, DTOs and a controller for one entity, added to an existing Milvonion solution.

Main features of a Milvonion solution​

  • Onion Architecture layers: Domain, Application, Infrastructure and Api, plus unit and integration test projects.
  • CQRS and the Mediator pattern with MediatR.
  • PostgreSQL through EF Core, with migrations applied at startup.
  • Redis for caching, token revocation stamps, feature flags and rate limits.
  • JWT authentication with deny-by-default authorization and permission management.
  • Logging with Serilog (Console, Seq, OpenTelemetry) and metrics and traces over OTLP.
  • Liveness and readiness health checks.
  • Scalar API documentation.
  • Multi-language support with resx files.
  • Architecture tests that enforce the code standards on every test run.
  • Production and development Dockerfiles and a docker-compose.yml for local dependencies.

Requirements​

  • The .NET SDK (the milvonion template targets .NET 11)
  • Visual Studio 2022 or Rider, if you want to work in an IDE

See Milvonion Template for the full list of what a generated project needs.

License​

MIT License.

Next steps​