DotBlaze Documentation
Start Here
Start with Installation, then build the complete blog application. It supplies every model, migration, request, policy, controller, route, view, and HTTP test needed for a working CRUD feature. The full table of contents is in documentation.md.
Read sample conventions before copying snippets. Examples use a .NET 10 application named Blog; replace its namespace consistently. Individual topic examples are alternatives unless explicitly described as extensions.
Find a Working Example
| Goal | Start with | Verify with |
|---|---|---|
| Build your first feature | Complete application | Its HTTP test |
| Understand a request | Lifecycle, routing, controllers | dotblaze route:list |
| Store and validate data | Models, migrations, validation | dotblaze migrate, dotblaze db:check |
| Protect an endpoint | Authentication, authorization, CSRF | Guest, owner, other-user, and invalid-input tests |
| Build an integration | HTTP client, queues, mail, AI SDK | The topic's fakes and expected results |
| Learn from executable source | SampleApp | SampleApp.Tests |
| Generate code as an AI agent | Learning map | Public signatures in src, then matching tests |
Topic Example Index
These relative links work in the repository and jump directly to a complete example or walkthrough. Use the rest of each topic for its API reference.
Contribution Guidelines
- One topic per file. The file name is the page slug (
routing.md→/docs/{version}/routing). - Topic pages start with a
# Title, followed by a bullet list linking to their sections. Each##/###heading is preceded by<a name="slug"></a>so links stay stable when a heading changes.documentation.mdis the site's navigation manifest and retains its list format. - Link to other pages with relative links, e.g.
[queues](queues.md#dispatching-jobs). - Use
dotblaze <command>in application command examples anddotblaze serveto start the app. Explain directdotnet run -- ...usage as a CLI fallback; published applications usedotnet App.dll .... - Document only what the code does today. Features that are not built yet go in a short "Not Yet Available" note; larger gaps are listed on the roadmap (
roadmap.md#known-gaps). - Code samples must compile against the current API. Prefer examples from
samples/SampleApp. - A complete sample supplies filenames, imports, custom types, registration, configuration, inputs, execution commands, and expected results. Label a method-body excerpt as an excerpt.
- Name prerequisites explicitly: template files, earlier tutorial sections, optional packages, a migrated database, worker processes, or a running external service.
- Include invalid-input or failure behavior where it affects how the sample should be used. Never replace error handling with an unexplained
catch. - Distinguish a fake/self-check from a live integration check. State which one was actually run when updating a page.