Prerequisites
I assume that you already have protoc installed from the last chapter. If you do not, this is the right time to install it because without it, you will not benefit as much from this chapter.
In this chapter, I will show common ways of setting up a gRPC project. I will use protoc, Buf, and Bazel. Thus, depending on the one(s) you are interested in, you will have to download the tool(s). Buf is an abstraction over protoc that lets us run protoc commands more easily. On top of that, it provides features such as linting and detecting breaking changes. You can download Buf from here: https://docs.buf.build/installation. I will also use Bazel to automatically generate Go code from Protobuf and the binary of our server and client. If you are interested in using it, you can check the installation documentation (https://github.com/bazelbuild/bazelisk#installation).
Finally, you can find the code for this chapter under the chapter4
folder in the accompanying GitHub repository...