generated from resonatecoop/user-api-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
20 lines (19 loc) · 833 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
generate:
buf generate --path ./proto/user/common.proto
buf generate --path ./proto/user/tag.proto
buf generate --path ./proto/user/address.proto
buf generate --path ./proto/user/streetaddress.proto
buf generate --path ./proto/user/user_messages.proto
buf generate --path ./proto/user/usergroup_messages.proto
buf generate --path ./proto/user/user.proto
# Generate static assets for OpenAPI UI
statik -m -f -src third_party/OpenAPI/
install:
go install \
google.golang.org/protobuf/cmd/protoc-gen-go \
google.golang.org/grpc/cmd/protoc-gen-go-grpc \
github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway \
github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2 \
github.com/mwitkow/go-proto-validators/protoc-gen-govalidators \
github.com/rakyll/statik \
github.com/bufbuild/buf/cmd/buf