Tutorial

Build the todo app from an empty directory, file by file.

Being written. For now, follow docs/TUTORIAL.md in the repo โ€” same content, pre-web-rewrite.

What this page will cover

Scaffolding, the first route, migrations, forms with HTMX, and pushing to a server.

The shape of a step

Each step shows the file you create and the behavior you get:

pg-web init my-app --template blank
cd my-app && pg-web dev
SectionYou build
RoutesA page that lists todos
FormsCreate / toggle / delete over HTMX
DeployThe same app on a VPS