This repository is a sample worker and http server for triggering Temporal workflow. The application implement TLS for connecting to Temporal cluster.
To run the POC:
-
Generate certificate by following tls-simple.
-
Copy the generated
/certs
folder to this root repo. -
Run the
docker-compose
from tls-simple. -
Create a namespace by running this command:
docker exec tls-simple_temporal-admin-tools_1 tctl --namespace {namespace} namespace register
It run the
tctl
command from the cluster with TLS. Replace the{namespace}
value and change the configuration indevelopment.yaml
. -
Run the app:
go run apps/main.go
-
Try to create API request:
curl --location --request POST 'localhost:8084' \ --header 'Content-Type: application/json' \ --data-raw '{ "Amount": 1000, "UserID": "nydan" }'