gRPC Demo - Pets API
This is a demo API showcasing gRPC and Protobuf in Golang.
It connects to a HTTP REST API downstream, found here: https://github.com/qwertyp4nts/pet-insurance-rest-api-demo
Tech notes
Run the service locally:
go run cmd/pets/main.go
Note: The default config file is set to: ./config/app/local.yaml
To run with a custom config file:
go run cmd/pets/main.go --config=./config/app/local.yaml
Regenerate proto code (from root):
protoc --go_out=. --go_opt=paths=source_relative \
--go-grpc_out=. --go-grpc_opt=paths=source_relative \
proto/v1beta1/pets/pets_api.proto