-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
23 lines (19 loc) · 870 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
.PHONY: generate
generate:
mkdir -p "pkg"
protoc -I/usr/local/include -I. \
-Ivendor.protogen \
--grpc-gateway_out=logtostderr=true:./pkg \
--swagger_out=allow_merge=true,merge_file_name=api:./swagger \
--go_out=plugins=grpc:./pkg ./api/profile/profile.proto
protoc -I/usr/local/include -I. \
-Ivendor.protogen \
--grpc-gateway_out=logtostderr=true:./internal/pb \
--go_out=plugins=grpc:./internal/pb ./vendor.protogen/bank_account/bank_account.proto
statik -f -src=./swagger -dest ./cmd -p swagger
.PHONY: migrate-up
migrate-up:
(cd migrations; goose postgres "host=localhost port=5433 user=postgres password=postgres database=profile sslmode=disable timezone=UTC" up)
.PHONY: migrate-down
migrate-down:
(cd migrations; goose postgres "host=localhost port=5433 user=postgres password=postgres database=profile sslmode=disable timezone=UTC" down)