Skip to content

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 ​

GoalStart withVerify with
Build your first featureComplete applicationIts HTTP test
Understand a requestLifecycle, routing, controllersdotblaze route:list
Store and validate dataModels, migrations, validationdotblaze migrate, dotblaze db:check
Protect an endpointAuthentication, authorization, CSRFGuest, owner, other-user, and invalid-input tests
Build an integrationHTTP client, queues, mail, AI SDKThe topic's fakes and expected results
Learn from executable sourceSampleAppSampleApp.Tests
Generate code as an AI agentLearning mapPublic 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.

AreaExamples
Getting startedInstallation, complete blog, configuration, file layout, lifecycle, deployment
HTTPRoutes, controllers, requests, responses, middleware, URLs
Forms and stateValidation, CSRF, cookies, sessions, errors
User interfaceViews, Blade, live components, UI form kit, icons, frontend, Vite, localization
Identity and accessAuthentication, authorization, API tokens, password resets, verification, two-factor, social login, hashing, encryption
DatabaseTransactions, queries, migrations, seeding, pagination, Redis
ModelsPersistence, relationships, casts, serialization, factories
Application servicesProviders, facades, events, console, queues, scheduling, packages
UtilitiesCollections, helpers, pipelines, context, dates, logging, processes
IntegrationsCache, filesystem, HTTP client, mail, notifications, broadcasting, rate limits, images, AI SDK
DashboardsHorizon, Pulse, Telescope
TestingSetup, HTTP, database, fakes
Project guidanceLaravel translation, contributing examples, available APIs versus roadmap

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.md is 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 and dotblaze serve to start the app. Explain direct dotnet run -- ... usage as a CLI fallback; published applications use dotnet 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.