Using the template
Note
This section is only necessary if you want to work with the same architecture as the github repository. Continuing working on the code from the previous code is totally fine.
If you remember, the goal of the previous chapter was to create a template that we can use to create a new gRPC project. As we will start such a project now, we will need to copy the content of the chapter4
folder into the chapter5
folder. To do that, simply run the following commands:
$ mkdir chapter5 $ cp -R chapter4/* chapter5
We pass –R
in our case because we want to recursively copy all the files in the chapter4
folder.
And finally, we can also clean the template a little bit. We can remove the dummy directory in the proto
folder because this was just there for testing our code generation. Then, if you used bazel
for chapter4
, we can delete all the build folders that start with the bazel-
prefix. To do that, we can just simply remove them as follows:
$ cd chapter5...