https://github.com/rsachdeva/zerogrpcservice
Zero in Go style here refers to Empty gRPC Service -- protobuf with ZeroService. This project is to help developers starting with protobuf and gRPC using Go.
https://github.com/rsachdeva/zerogrpcservice
go go-module golang grpc protobuf3 protoc protocol-buffers
Last synced: 7 months ago
JSON representation
Zero in Go style here refers to Empty gRPC Service -- protobuf with ZeroService. This project is to help developers starting with protobuf and gRPC using Go.
- Host: GitHub
- URL: https://github.com/rsachdeva/zerogrpcservice
- Owner: rsachdeva
- License: mit
- Created: 2020-10-01T15:56:55.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-10-05T16:21:03.000Z (over 5 years ago)
- Last Synced: 2024-12-16T22:02:41.478Z (about 1 year ago)
- Topics: go, go-module, golang, grpc, protobuf3, protoc, protocol-buffers
- Language: Go
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# zerogrpcservice
Zero in Go style here refers to Empty gRPC Service.
This project is to help developers starting with protobuf and gRPC using Go.
Shows common code from scratch for protobuf/gRPC -- proto with ZeroService;
grpc Server start and Client connection with ZeroService.
The project already has go.mod for protobuf and gRPC libraries.
**Steps to get started After cloning/forking project:(assuming root of the project)**
brew install protobuf (for MacOS and similarly for other OS; for protoc)
export GO111MODULE=on go get -u github.com/golang/protobuf/protoc-gen-go (builds and installs protoc-gen-go plugin)
That's it....You can start with protobuf/gRPC with Golang.
Execute generatezeroservice.sh ( overwrites existing internal/zeropb/zeroservice.pb.go generated from proto/zeroservice.proto)
Execute runserver.sh
Execute runclient.sh
Go through the 'Zero' service server and client code.
Tweak Module Name.
Add your Service to zeroservice.proto and rename proto file as appropriate.
Update server.go and client.go accordingly.
Profit!