Documentation
¶
Overview ¶
Command tutorial is the program that the reader of the tutorial, docs/tutorial, has built after part 7: the shop of the quickstart, grown into one binary with two roles. The web role takes orders and shows the dashboard. The worker role sends receipts and reminders, builds a report every minute, and publishes order events through the outbox.
docker run --name taskmill-pg -e POSTGRES_PASSWORD=postgres -p 5432:5432 -d postgres:18 go run ./examples/tutorial worker go run ./examples/tutorial web
Both roles read the database from DATABASE_URL, by default the one that the docker command above starts. The web role listens on ADDR, by default localhost:8080, with the dashboard at http://localhost:8080/taskmill/. The worker role answers its readiness probe on HEALTH_ADDR, by default localhost:8081. Ctrl-C stops a role.