framework_v2/Makefile

20 lines
621 B
Makefile
Raw Normal View History

2024-07-14 15:41:22 +00:00
.PHONY: ent
2024-06-13 11:22:43 +00:00
setup:
go run . setup
ent:
2024-07-14 15:41:22 +00:00
go generate ./ent
2024-06-13 11:22:43 +00:00
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
2024-07-14 16:02:19 +00:00
curl -sSf https://atlasgo.sh | sh
2024-07-15 08:31:17 +00:00
echo "Buf install: https://buf.build/docs/installation"
buf dep update
2024-07-14 14:14:27 +00:00
swag:
2024-07-14 16:02:19 +00:00
swag init -g internal/routes/router.go --parseDependency
hash-migration:
2024-07-15 08:31:17 +00:00
atlas migrate hash --dir "file://internal/migrations"
proto:
echo "please run buf dep update if you first use buf"
buf generate