Documentation
What 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 the parts for yours. ApiHost stands for your app's name.
How ApiHost works, how to change it, and how to run it in production.
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. OWASP ASVS level 2 maps it to the standard, requirement by requirement.
- 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: from its data to its page and tests, step by step
- 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.