Academy

One application, three architectures

The same small shop, organized three different ways. Switch between them and watch the components move. An architecture is nothing more than a way of grouping code, plus a rule about which group may depend on which.

PresentationBusiness logicData accessOrderControllerOrderServiceOrderRepoUserControllerUserServiceUserRepoPayControllerPayServicePayRepo

Play a scenario

A request enters at the top and travels straight down: the controller parses it, the service decides, the repository stores. Each step only knows the next one.

Or test a dependency

Click a component in the diagram, then a second one. You will see whether that import is allowed in this architecture, and why.

An arrow means "depends on" (imports).

The rule: Dependencies point down. A layer may use the layer directly below it and nothing above it.

Full lesson

Protect your codebase now

Two minutes to set up: the CLI, the hook for your agent, and the GitHub Action for every pull request. It runs locally, so your code never leaves your machine.