gRPC All The Things talk at Full Stack Fest 2018 is on the branch original-fullstackfest-2018. The master branchtracks an upgraded project with the similar code.
A grpc-based todo backend used to demonstrate gRPC Gateway and running microservices on Kubernetes. This is demo code used for
brew cask install bloomrpc
brew install grpcurl
brew install minikube
brew install istioctl
Generate the required protobuf files with make protogen. This will run the protoc command in the namely/protoc-all docker container.
This project has a skaffold.yaml file and can be run on a minikube-based environment. Install the istioctl and minikube dependencies to experiment then do the following:
minikube startistioctl manifest apply --set profile=demo --set addonComponents.grafana.enabled=trueminikube tunneltodos namespace definition: k apply -f k8s/setup/namespace.yamltodos: kubectl label namespace todos istio-injection=enabledskaffold devgrpcurl -plaintext localhost:50052 describe
grpcurl -plaintext -d '{ "id": "01E4Q00M7YPD06TX3YW8DMFF8B" }' localhost:50052 todos.Todos/GetTodo
curl -X POST http://localhost:51051/todos -H 'Content-Type: application/json' -d '{ "id": "01E4Q00M7YPD06TX3YW8DMFF8B" }'