# {{titleCase name}} Temporal workflow app: Hono API + Temporal worker + a hello workflow. ## Run it locally (no AWS, no VPN) ```bash mesh start # local Mesh platform (Docker only) — the Hub is at http://localhost:9000 pnpm install mesh dev # auto-wires api + worker to the local platform (tmux) ``` Prove the workflow end-to-end: ```bash curl -s -X POST http://localhost:3000/workflows/greet \ -H 'content-type: application/json' -d '{"name":"Mesh"}' # → {"workflowId":"greeting-…","result":"Hello, Mesh!"} ``` Watch it in the **Hub** (http://localhost:9000 → {{tenant}} → {{name}}) or the Temporal UI: http://localhost:8233/namespaces/{{tenant}}-dev-{{name}}/workflows (the app gets its own Temporal namespace `{{tenant}}-dev-{{name}}`, exactly like a deployed environment; its logs land in the Hub's logs view too). ```bash mesh dev logs worker # tail a service mesh dev --kill # stop the session ``` ## Deploy to a tenant environment ```bash mesh login {{tenant}}.dev mesh deploy up --yes ``` The stack registers itself in the platform registry (`env.register()`) and appears in the Hub. ## Layout - `index.ts` — Pulumi program (`AppEnvironment` + API `Service` + `TemporalWorker`) - `api/` — Hono API that starts workflows - `worker/` — Temporal worker: `workflows.ts` (deterministic) + `activities.ts`