GoLang Hands-on with gRPC-Unary

Part #1.) :- Steps to demonstrate the basic setup :-

brew install clang-format
brew install protobuf
go get -u google.golang.org/grpc
brew install protoc-gen-go
brew install protoc-gen-go-grpc

Part #2.) :- We are now setting up the gRPC based server :-

go mod init github.com/adityagoel123/grpc-aditya-learning
protoc -Igreet/proto --go_opt=module=github.com/adityagoel123/grpc-aditya-learning --go_out=. --go-grpc_opt=module=github.com/adityagoel123/grpc-aditya-learning --go-grpc_out=. greet/proto/*.proto
go mod tidy
go build -o bin/greet/server ./greet/server
./bin/greet/server

Part #3.) :- We are now setting up the gRPC based client :-

go build -o bin/greet/client ./greet/client
./bin/greet/client

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store