vertical-slice-api-template

๐Ÿฐ An asp.net core template based on .Net 9, Vertical Slice Architecture, CQRS, Minimal APIs, OpenTelemetry, API Versioning and OpenAPI.

templateboilerplatecqrsdotnetaspnetcoredotnetcoreboilerplate-templateclean-architecturemediatordotnet-templatevertical-slicescqrs-pattern
FreeRepo

Preview

vertical-slice-api-template preview

Overview

This is an ASP.NET Core project template built on Vertical Slice Architecture, CQRS and Minimal APIs that provides a structured foundation for building REST APIs with PostgreSQL, validation, logging and observability. It includes testing frameworks, Docker support and development tools to help developers quickly scaffold production-ready API projects with built-in best practices for code organization and deployment.

Features

vertical-slice-architecturecqrs-patternminimal-apisapi-versioningopenapi-swaggerfluent-validationmediator-patternsource-generatorshealth-checksresilience-policiesdependency-injectionstructured-loggingopentelemetry-instrumentationdocker-supportconventional-commitscode-analysis

Feature Flags

userDashboardblogecommerceloggingErrorTrackingjobsQueueapiDocsformsValidationloggingmonitoring

Recommended Use Cases

rest-api-developmentmicroservicesdistributed-systemsenterprise-applicationsscalable-backends

Frontend

None

Backend

aspnetcoredotnet-9

Auth Providers

None

Deployment Targets

dockerdocker-compose

Payment Providers

None

Quick Facts

โญ Stars
244
๐Ÿด Forks
39
๐Ÿ”„ Active
Unknown
๐Ÿ•’ Last Commit
2025-04-19T21:33:46.000Z

Stack

Framework
aspnetcore
Language
csharp
Database
postgresql
ORM
entity-framework-core
Testing
unit-tests, integration-tests, contract-tests, end-to-end-tests
Monitoring
opentelemetry, jaeger, tempo, loki, kibana, prometheus
Logging
serilog

Data Layer

Databases
postgresql
ORM
entity-framework-core

UI Stack

Developer Experience

Docker
Yes
Tests
Yes
Quickstart
Yes
env.example
Yes
CI
husky, commitlint

Pricing

Classification
free
Selected
โ€”
Notes
Open source template available via NuGet and GitHub
Get Started with this Boilerplate