53GB

gRPC Project | Hello World in gPRC | Connecting Client and Server



gRPC Project | Hello World in gPRC | Connecting Client and Server

Hello everyone. In this video, I am going to show you how you can make a simple hello world application using gRPC to connect the client with the server.

I hope you enjoy this video. Please subscribe for more videos.

Commands To Use 👋
——————————————————————————
👉 Download the protoc zip file for your system from the releases page.
wget https://github.com/protocolbuffers/protobuf/releases/download/v3.17.3/protoc-3.17.3-linux-x86_64.zip

👉 Unzip the downloaded file.
unzip protoc-3.17.3-linux-x86_64.zip -d protoc3

👉 Move protoc to /usr/local/bin/
sudo mv protoc3/bin/* /usr/local/bin/

👉 Move protoc3/include to /usr/local/include/
sudo mv protoc3/include/* /usr/local/include/

👉 protoc –go_out=. –go_opt=paths=source_relative –go-grpc_out=. –go-grpc_opt=paths=source_relative /path/to/directory/containing/proto/hello.proto

👉 go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
👉 go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest

👉 protoc –go_out=. –go_opt=paths=source_relative
–go-grpc_out=. –go-grpc_opt=paths=source_relative
proto/hello.proto
——————————————————————————

Connect With Me 👋
——————————————————————————
‣ Github: https://github.com/ibilalkayy/Small-Projects/tree/main/gRPC
‣ Hashnode: http://bit.ly/3U7970L​​
‣ Twitter: https://twitter.com/ibilalkayy
‣ LinkedIn: https://bit.ly/2WQH0It
‣ Buy Me A Coffee: https://www.buymeacoffee.com/ibilalkayy
——————————————————————————
#grpc #app #software

Exit mobile version