-
API Gateway
-
gRPC Service
sudo apt install -y protobuf-compiler
brew install protobuff
Releases Protocl Buffers v2x.x list
> protoc-2x.x-win32.zip
> protoc-2x.x-win64.zip
go get google.golang.org/protobuf/cmd/protoc-gen-go
go get google.golang.org/grpc/cmd/protoc-gen-go-grpc
go get google.golang.org/grpc
create database auth_svc;
create database order_svc;
create database product_svc;
protoc protoc/route_guide.proto --go_out=plugins=grpc:.
ERR : --go_out: protoc-gen-go: plugins are not supported; use 'protoc --go-grpc_out=...' to generate gRPC
Use go work in project root
cd go-grpc-api-gateway-microservice
go work init
go work use ./api-gateway ./auth-svc ./order-svc ./product-svc