FenixKit MongoDB .NET Minimal API Starter Kit
.NET 8  ·  .NET 10  — same price

.NET Minimal API
Starter Kit — MongoDB

The clean foundation. Persistence, pagination, error handling, and Docker — wired up and ready to extend.

Use code FIRSTXPEOPLE for €15 off → €20

What's inside.

MongoDB MongoDB.Driver ErrorOr Docker Compose Swagger / Swashbuckle .NET 8 .NET 10

BaseRepository with 7 hooks

Generic typed repository covering all CRUD operations. Override any of the 7 lifecycle hooks (BeforeInsert, AfterGet, etc.) to inject cross-cutting behaviour without touching service logic.

Offset + cursor pagination

Two pagination strategies included. Offset pagination for backoffice tables with page numbers. Cursor-based pagination (ID-driven) for feeds and public APIs — O(log n) regardless of collection size.

ErrorOr result pattern

No exceptions for business errors. Every operation returns ErrorOr<T>, forcing explicit error handling at the call site. Global error handler maps errors to RFC 7807 ProblemDetails automatically.

Health checks

Two endpoints out of the box: /health/live for liveness probes and /health/ready for readiness, including a MongoDB connectivity check. Compatible with Docker health probes.

Swagger with full XML docs

All endpoints documented with XML comments. Swagger UI is fully functional in development. Request and response models carry descriptions, examples, and correct HTTP status codes.

Docker Compose ready

One docker compose up --build starts the API and MongoDB together. The .env.example file documents every environment variable. No manual configuration required.

One-time payment. Yours forever.

Full source code, private docs, unlimited projects, entire team included.

35

or €20 with code FIRSTXPEOPLE

Secure checkout via Lemon Squeezy  ·  Instant delivery

Need auth or cache too? See the full stack kit →