-
Install Go
We use version 1.17. Follow Golang installation guideline.
-
Install golangci-lint
Follow golangci-lint installation.
-
Install gomock
Follow gomock installation.
-
Install golang-migrate
Follow golang-migrate.
-
Install godog
Follow godog.
-
Install Buf
Follow Buf installation.
-
Install clang-format
We use clang-format to format our protocol buffer files. We use version 11.1.0 when we develop this project.
-
Install
protoc-gen-go-grpc
,protoc-gen-grpc-gateway
,protoc-gen-openapiv2
,protoc-gen-go
$ go install \ github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway \ github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2 \ google.golang.org/protobuf/cmd/protoc-gen-go \ google.golang.org/grpc/cmd/protoc-gen-go-grpc
That will place four binaries in $GOBIN;
protoc-gen-go-grpc
protoc-gen-grpc-gateway
protoc-gen-openapiv2
protoc-gen-go
Make sure that $GOBIN is in $PATH.
For more this section installation guide, please refer to grpc-gateway installation.
-
PostgreSQL
Follow PostgreSQL download.