gRPC Microservices
Command to generate code
$ protoc -I=proto --go_out=plugins=grpc,paths=source_relative:./proto proto/activity/activity.proto
$ protoc -I=proto --go_out=plugins=grpc,paths=source_relative:./proto proto/user/user.proto
$ protoc -I=proto --go_out=plugins=grpc,paths=source_relative:./proto proto/project/project.proto
$ protoc -I=proto --go_out=plugins=grpc,paths=source_relative:./proto proto/task/task.proto
Environment switching
Use GRPC_MICROSERVICES_ENVIRONMENT
.
Everything except production is development.
$ GRPC_MICROSERVICES_ENVIRONMENT=production docker-compose up
License
MIT
Author
178inaba