netcore-boilerplate

Boilerplate of API in .NET 9

apiboilerplatenetcore-boilerplatedotnet9codecov
FreeRepo

Preview

netcore-boilerplate preview

Overview

This is a template for building APIs in .NET 9 that demonstrates multiple architectural patterns including service and repository approaches, traditional controllers and minimal APIs and modular design.

Features

openapiscalar-documentationfeature-flagshealth-checksef-coredapperdockerdocker-composedb-migrationsbackground-servicesapi-key-authorizationglobal-exception-handlingminimal-apismodular-architecturerepository-patternservice-pattern

Feature Flags

authenticationsubscriptionsauthorizationnotificationsapiDocsformsValidationfeatureManagementhealthChecksloggingdockercitestingbackgroundJobs

Recommended Use Cases

rest-api-developmentmicroservicesenterprise-applicationslearning-dotnet-best-practices

Frontend

None

Backend

asp-net-corecsharpentity-framework-coredapperserilog

Auth Providers

api-key

Deployment Targets

dockerdocker-compose

Payment Providers

None

Quick Facts

โญ Stars
545
๐Ÿด Forks
112
๐Ÿงพ License
mit
๐Ÿ”„ Active
Yes
๐Ÿ•’ Last Commit
2025-11-04T08:22:24.000Z

Stack

Framework
asp-net-core
Language
csharp
Database
mysql, mssql, sqlite
ORM
entity-framework-core, dapper
Testing
xunit, moq, autofixture, verify
Monitoring
health-checks
Logging
serilog
CI
github-actions

Data Layer

Databases
mysql, sqlite, mssql
ORM
entity-framework-core

UI Stack

Developer Experience

Docker
Yes
Tests
Yes
Quickstart
Yes
env.example
Yes
CI
github-actions

Pricing

Classification
free
Selected
โ€”
Notes
Open source project
Get Started with this Boilerplate