This sample has a Workflow that maintains state in a Map<string, number>. The state can be updated and read via a Signal and Query:
The Client scripts are:
temporal server start-devto start Temporal Server.pnpm installto install dependencies.pnpm run start.watchto start the Worker.- In another shell,
pnpm run workflow.startto run the Workflow.
Or run these to develop:
temporal server start-dev --db-filename temporal-db --log-format pretty
pnpm server.watch
pnpm external.watch
pnpm worker.watch