Skip to content

This is the demo code to evaluburate about grpc server and client.

Notifications You must be signed in to change notification settings

hashirsheikh-hrs/grpc-demo-add-sub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grpc-demo-add-sub

This is the demo code to evaluburate about grpc server and client.

Server

To build server use try to execute following command -

./gradlew installDist

It will create a folder install inside /build folder of project directory. you will find setup file inside calculator folder as follow below path -

build/install/CalculatorService/bin/calculator-server

Now open terminal and execute calculator-server file on it. It will start server and listening the port 50051 by default.

Client

Just run the app on you device, check the your server address and enter the host detail on host coloumn.

Go-Server

for configuring the go-server follow doc- link to Doc!, for the installation of go-lang follow installation instruction

place go-cal-server folder to /home/<username>/go/src/google.golang.org/grpc/examples/ folder and run main.go

go run cal_server/main.go

to build again after changes in proto file use below command

protoc -I calculator/ calculator/math.proto --go_out=plugins=grpc:calculator

About

This is the demo code to evaluburate about grpc server and client.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published