Navyblue ASP.NET Core Web API Templates
Project template for Visual Studio and dotnet new (navyblue-webapi) that scaffolds a production-shaped layered Web API on Navyblue.Foundation.
What's included
- Domain / Application / Infrastructure / Web / Tests solution layout
- CQRS command & query buses (
Navyblue.Foundation.Cqrs)
- JWT authentication with access + refresh token rotation (login / refresh / logout)
- EF Core + Pomelo persistence targeting MySQL 8.0, with migrations
- Redis distributed cache (cache-aside for reads, invalidation on writes)
- ApiResult, correlation ID, soft delete & audit fields, Serilog, health checks
- Login rate limiting and sample unit tests
Getting started
dotnet new install Navyblue.Templates.WebApi
dotnet new navyblue-webapi -n MyCompany.MyService
| |