Building a gRPC API in Go - Part Two
Welcome to the second part of the "gRPC with Go" series. In part one, you created the Protobuf definitions for the task management app, generated Go code stubs from the Protobuf definitions, and created a reverse proxy for REST clients.
In this part, you'll start working on the server. You'll hook the server to a database and write the CreateTask
and GetTask
endpoints. The remaining streaming endpoints will be tackled in the next part.
Connecting to a Database
Setting Up PostgreSQL - A Local Database for Your Project.
Writing the gRPC Server
Implementing the gRPC Server - Creating Tasks and Handling Errors.
Comments Table
Finalizing the gRPC Server - Creating the Comments Table and Endpoints.