tutorial

command
v0.16.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2026 License: MIT Imports: 18 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL