The full source code for the article Building your first Cadence Workflow. Check out the article for a detailed walk-through of this repository.
cd cadenceservice
docker-compose up
- Register the
simple-domain
withdocker run --network=host --rm ubercadence/cli:master --do simple-domain domain register --rd 10
Navigate back to the project root folder. Make sure go is installed in system.
-
HttpServer
make httpserver
./bins/httpserver
-
Worker
make worker
./bins/worker
-
To start workflow
- POST request to
http://localhost:3030/api/start-hello-world
- Note down the workflow id so you can use it to signal
- POST request to
-
To signal workflow
- Copy the workflow id from the previous response or check Cadence UI for the WorkflowID
- POST Request to
http://localhost:3030/api/signal-hello-world?workflowId=<workflowId>&age=25
- Make sure to replace with the id retrieved from cadence web ui