Using protobuf and gRPC services to generate Temporal workflows
Build the generator
$ make build
go build ./cmd/protoc-gen-temporal/
Build proto
$ make proto
protoc -I demopb --temporal_out=demopb --temporal_opt=paths=source_relative --plugin protoc-gen-temporal=protoc-gen-temporal demo.proto
Build the demo app
$ make demo
go build -o demo ./cmd/demo
Start a temporal dev server
$ temporal server start-dev
Run the worker
$ ./demo -mode worker
Run the client
$ ./demo -mode client
result: Hello, Alice!