Guides
Guides
Practical how-tos: migration, module wiring, DMA on different frameworks.
Guides are the "how to do it" for a specific stack. Concepts explain the rules; here you get step-by-step patterns with live examples from the DMA repository.
Haven't read the basics? Start with Quick start and Project layout.
Where to start
Migration
Adopt DMA in an existing project
Monorepo
Multiple apps, CI
Cross-module wiring
Events, ports, wiring in app
By framework
Each guide uses the same mini-shop with a different composition root:
| Guide | Composition root | Example in repo |
|---|---|---|
| Vite + React | src/app/ | Runnable canon |
| Next.js | src/app/ | App Router + RSC |
| Astro | src/pages/ + src/app/ | .astro frontmatter |
| SvelteKit | src/routes/ | Svelte 5 runes |
| Vue + Vite | src/app/ | SFC + composables |
All examples pass dma check — sources live in examples.
Common across stacks
- Routes stay thin — import only from
*/public/* - No
feature → feature services/is created on promotion, not upfront- CI:
dma check+ linter of your choice