Run your first sample
This guide uses Duna’s local Docker stack and timer-driven order sample. You need Docker with Compose and an existing local copy of the Duna project files, including the Compose configuration and samples. No local .NET SDK is needed for this path.
Start the stack
# From your local Duna project directory
docker compose up -d --buildThe initial image build can take time. Open the operational web UI at http://localhost:8080 after readiness succeeds.
curl http://localhost:5218/health/ready
docker compose logs -f api webPublish the timer demo
Run this command from the Duna project directory. The endpoint accepts JSONC. Publication assigns the definition version on the server.
curl -i -X POST http://localhost:5218/definitions \
-H 'Content-Type: application/json' \
--data-binary @samples/order-pipeline.jsoncA successful publication returns 201 Created and a definition location. The sample contains automatic states that update stage, interleaved with timers.
Start an order
curl -i -X POST http://localhost:5218/definitions/order-pipeline/instances \
-H 'Content-Type: application/json' \
-d '{"customer":"Alex Morgan","item":"Margherita"}'Copy the returned instance ID. In the web UI, open Instances and select the order to watch its progress. The four source timers wait 10, 10, 8 and 10 seconds before the process reaches delivered.
Inspect the evidence
Replace INSTANCE_ID below with the returned ID.
curl http://localhost:5218/instances/INSTANCE_ID
curl http://localhost:5218/instances/INSTANCE_ID/historyThe sample has no external HTTP or database actions. Other samples can require saved connections, child definitions, credentials and real or mock services. In particular, the loan sample’s placeholder credit endpoint is not a working service.
Stop the local services
docker compose downThese are development defaults, not a production deployment. Review operations and security before exposing the stack. In PowerShell, use curl.exe if curl is an alias for Invoke-WebRequest.