This mailing list microservice is a simple service that performs basic CRUD operations. This was a learning experience to learn more about Go and specifically the differences betwen JSON and gRPC APIs using Protcol Buffers.
This project requires a gcc
compiler installed and the protobuf
code generation tools.
Install the protoc
tool using the instructions available at https://grpc.io/docs/protoc-installation/.
Alternatively you can download a pre-built binary from https://github.com/protocolbuffers/protobuf/releases and placing the extracted binary somewhere in your $PATH
.
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
protoc --go_out=. --go_opt=paths=source_relative \
--go-grpc_out=. --go-grpc_opt=paths=source_relative \
Proto/mail.proto