Documentation
One page for every option
This page covers every choice of --Persistence, --Auth, --IncludeTests and --Aspire. A label says which options a part is for; the copy in your app's docs/ folder has only yours. ApiHost stands for your app's name.
How ApiHost works, how to change it, and how to run it in production. Start with the main README to run it locally. These guides cover the options this app was created with; the online documentation covers every option, and how to upgrade to newer versions of the template.
Start here
- Tutorial: build a feature: a Contacts feature from start to finish: data, endpoints, validation, a background handler, live updates, the React page, and tests.
- Architecture: how the example feature works, pattern by pattern.
- Troubleshooting: problems people run into, by what you see.
Guides
- With accounts Accounts: sign-in, emails, settings, lockout, roles and the admin page, Google/GitHub, passkeys and two-factor authentication.
- With organisations Plans, trials and limits: the plan catalogue, the reverse trial, feature flags, and checking features and limits.
- With organisations Integrations: API keys, the MCP endpoint for AI assistants, webhooks (sent and received) and encrypted secrets.
- File storage: uploads to local disk, any S3-compatible store or Azure Blob Storage, with signed URLs.
- Analytics and cookie consent: Google Tag Manager behind a consent banner, and adding Google Analytics, Datadog or Rollbar.
- Security: what the app does to protect users and data, and what's left to you.
- Testing: the test suites, how to run them, and how to add tests.
- Observability: health checks, traces, metrics and logs.
- Deployment: publishing, configuration, and running in production. For a step-by-step guide to a small server, see deploy/README.md.
How-to guides
- Add a feature: the checklist
- Where to add things: the places an app or a library plugs in, so its code survives updates from the template
- With Aspire Run everything with Aspire
- Put Cloudflare in front
- EF Core Change the database schema (EF Core migrations)
- With accounts Send email through your email provider
- With accounts Set up "Continue with Google" and "Continue with GitHub"
- With accounts Add a role
- With accounts Make someone an admin
- With accounts Change the JWT signing key
- With accounts Sign in from a mobile or desktop app
Reference
- Configuration: every setting, with its default.
- HTTP endpoints: every endpoint, and who can call it.
- Messages: the background messages and their handlers, and what's sent to browsers.