{"id":33919690,"url":"https://github.com/peterhellberg/pizza-delivery-simulator","last_synced_at":"2026-06-01T03:31:17.136Z","repository":{"id":312111719,"uuid":"1046362754","full_name":"peterhellberg/pizza-delivery-simulator","owner":"peterhellberg","description":"Small example project of using Temporal via their Go SDK","archived":false,"fork":false,"pushed_at":"2025-10-16T23:30:43.000Z","size":85,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-18T02:51:24.239Z","etag":null,"topics":["example","go","temporal"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/peterhellberg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-08-28T15:18:19.000Z","updated_at":"2025-10-16T23:30:46.000Z","dependencies_parsed_at":"2025-10-17T16:34:02.126Z","dependency_job_id":null,"html_url":"https://github.com/peterhellberg/pizza-delivery-simulator","commit_stats":null,"previous_names":["peterhellberg/pizza-delivery-simulator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/peterhellberg/pizza-delivery-simulator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterhellberg%2Fpizza-delivery-simulator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterhellberg%2Fpizza-delivery-simulator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterhellberg%2Fpizza-delivery-simulator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterhellberg%2Fpizza-delivery-simulator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peterhellberg","download_url":"https://codeload.github.com/peterhellberg/pizza-delivery-simulator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterhellberg%2Fpizza-delivery-simulator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33759178,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-01T02:00:06.963Z","response_time":115,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["example","go","temporal"],"created_at":"2025-12-12T08:59:27.145Z","updated_at":"2026-06-01T03:31:17.123Z","avatar_url":"https://github.com/peterhellberg.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pizza Delivery Simulator 🍕\n\n\u003e [!Tip]\n\u003e This is a notebook that can be used with the [Runme CLI](https://docs.runme.dev/installation/cli) 📚\n\u003e\n\u003e _Installation of the Runme CLI:_\n\u003e   - **On macOS:** `brew install runme`\n\u003e   - **Using Go:** `go install github.com/stateful/runme@latest`\n\u003e   - **Binaries:** \u003chttps://github.com/stateful/runme/releases\u003e\n\n## Plan _(not all implemented yet)_\n\n- Workflow: Customer places an order.\n- Activities:\n    - [x] Place order (for a known customer)\n    - [x] Assign delivery driver (via frontend `pizza-delivery-dashboard`)\n    - [ ] Driver reports progress via Temporal signals _(e.g., “Stuck in traffic”, “Almost there”)_.\n\n## Dependencies\n\n- https://go.dev/\n    - https://github.com/golang/go\n- https://temporal.io/\n    - https://temporal.io/setup/install-temporal-cli\n    - https://github.com/temporalio/temporal\n    - https://github.com/temporalio/sdk-go\n- https://jqlang.org/\n\n## Frontends\n\n### [pizza-delivery-dashboard](/frontends/pizza-delivery-dashboard)\n\n\u003cimg src=\"https://assets.c7.se/imgur/pAU36FB.png\" width=\"60%\" alt=\"2 orders waiting to be assigned.\" /\u003e\n\n## Commands\n\n### Execute\n\n#### GetMenu\n\n```sh { name=get-menu excludeFromRunAll=true }\ntemporal workflow execute -t pizza --name GetMenu\n```\n\n#### PlaceOrder\n\n```sh { name=place-order }\nexport PIZZA=\"5\"\nexport NAME=\"Peter\"\n\ntemporal workflow execute -t pizza --name PlaceOrder \\\n    -i \"$(jq -c -n '{name:env.NAME,pizza:env.PIZZA|tonumber}')\"\n```\n\n### Server\n\n```sh { name=temporal-dev-server }\ntemporal server start-dev --ip=0.0.0.0 -f=pds.db\n```\n\n#### Search attributes\n\n```sh { name=temporal-create-search-attributes }\ntemporal operator search-attribute create --name DriverAssigned --type Bool\ntemporal operator search-attribute create --name DriverID --type Keyword\ntemporal operator search-attribute create --name OrderID --type Keyword\n```\n\n### Worker\n\n```sh { name=worker }\ngo run ./worker | jq\n```\n\n### Dashboard\n\n```sh { name=dashboard }\ngo run ./frontends/pizza-delivery-dashboard\n```\n\n### Install `temporal` and `jq` using [Homebrew](https://brew.sh/) 🍏\n\n```sh { name=brew-install excludeFromRunAll=true }\n# Install temporal and jq using brew\nif ! [ -x \"$(command -v brew)\" ]; then\n    echo 'Error: brew is not installed.' \u003e\u00262\n    exit 1\nfi\n\nbrew install temporal jq\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterhellberg%2Fpizza-delivery-simulator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeterhellberg%2Fpizza-delivery-simulator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterhellberg%2Fpizza-delivery-simulator/lists"}