20 lines
621 B
Makefile
20 lines
621 B
Makefile
.PHONY: ent
|
|
|
|
setup:
|
|
go run . setup
|
|
ent:
|
|
go generate ./ent
|
|
grpc-web:
|
|
grpcwebproxy --backend_addr=localhost:8081 --run_http_server --run_tls_server=false --server_http_debug_port 18081 --allow_all_origins --server_bind_address 127.0.0.1
|
|
install-deps:
|
|
go install github.com/swaggo/swag/cmd/swag@latest
|
|
curl -sSf https://atlasgo.sh | sh
|
|
echo "Buf install: https://buf.build/docs/installation"
|
|
buf dep update
|
|
swag:
|
|
swag init -g internal/routes/router.go --parseDependency
|
|
hash-migration:
|
|
atlas migrate hash --dir "file://internal/migrations"
|
|
proto:
|
|
echo "please run buf dep update if you first use buf"
|
|
buf generate
|