Skip to content
Slicekit

Documentation

Build with Slicekit

Everything you need to clone the template, run it locally, and ship features across the .NET API and the React SPA.

Backend guides

Adding a database migration

Create, apply and review EF Core migrations against the AppDbContext, and how migrations run on startup.

Adding a permission

Define a new permission in the Allow catalogue, assign it to roles, and enforce it on endpoints and in the UI.

The settings pattern

Add strongly-typed, validated configuration with the settings pattern and bind it from appsettings and environment variables.

Adding an OAuth provider

Wire up an external OAuth provider (Google, GitHub, ...) alongside the cookie sessions, end to end.

Two-factor authentication

How time-based one-time password (TOTP) two-factor authentication works, and how to enroll, verify and recover.

Rate limiting

Apply and tune rate-limit policies on endpoints, and the defaults that ship with the template.

Pagination

Return paged, sortable list results with the shared pagination primitives, from query to typed client.

Auditing

Record who did what by emitting audit events, and where the trail is stored and surfaced.

Domain and integration events

Publish and handle domain and integration events over Wolverine, with the transactional outbox for reliability.

Error handling

The Result and AppError taxonomy, how failures map to ProblemDetails responses, and how to add an error type.

File storage

Upload, store and serve files through the S3-compatible storage abstraction (MinIO locally).

Adding an API version

Introduce a new API version (v2) without breaking existing clients.

Data export & GDPR

Export a user's personal data and handle deletion, the GDPR-oriented personal-data tooling.

Impersonation

Let admins safely impersonate a user for support, with the audit trail that records it.

Removing a feature

Cleanly delete a vertical slice across the API, frontend, permissions and tests.

Testing a feature

Unit-test handlers and aggregates with the fast suite, and cover endpoints with Testcontainers integration tests.

Interactive API reference

Explore every endpoint with request and response schemas, and try calls against your running API.

Open API reference

Use these docs with AI

Give your coding assistant /llms.txt for a linked index, or /llms-full.txt for every page in one file. See AI-assisted development.

How to feed the docs to AI