Skip to content

This repository was made to host some simple gRPC examples which can be used as a boilerplate for bigger projects.

Notifications You must be signed in to change notification settings

lorenzo-arena/grpc-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gRPC boilerplate examples

This repository was made to host some simple gRPC examples which can be used as a boilerplate for bigger projects.

The main aim is to share some of the "aha!" moments which came out while developing with the gRPC C++ library.

gRPC++

The first examples will be in C++, however I would like to integrate the repository with other languages.

Compiling

The examples have been developed in Ubuntu, however similar instructions applies also for other Linux distributions.

First install all the dependencies:

# Build system
sudo apt install -y meson ninja-build

# gRPC and protobuf dependencies
sudo apt install -y protobuf-compiler protobuf-compiler-grpc libprotobuf-dev libgrpc-dev libgrpc++-dev

Then meson can be used to build the project:

cd src/cpp
meson build
cd build
ninja

The binaries will be contained in a tree matching the source tree, so the grpc-server-sync binary can be found in build/server/sync.

About

This repository was made to host some simple gRPC examples which can be used as a boilerplate for bigger projects.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published