ygoto3 / sample-grpc-cpp

A sample cpp project with gRPC

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sample-grpc-cpp

A sample cpp project with gRPC

Build

Build a docker image with the Dockerfile in the tools directory.

$ docker build -t sample-grpc-cpp tools/Dockerfile

Run the script run_docker.sh and get in the container.

$ ./tools/run_docker.sh

In the docker container, run the script gen_grpc.sh.

$ ./tools/gen_grpc.sh

See if pb.cc and pb.h files were generated in the protos/rpc directory.

$ ls protos/rpc
sample.grpc.pb.cc sample.grpc.pb.h  sample.pb.cc      sample.pb.h

About

A sample cpp project with gRPC


Languages

Language:C++ 46.2%Language:Dockerfile 23.3%Language:CMake 20.0%Language:Shell 10.5%