feat: 完成后端全套自动化脚本、Makefile、README,支持一键启动与测试

This commit is contained in:
fish
2026-03-28 18:21:20 +08:00
parent 126e1f8466
commit 17d9522502
4 changed files with 212 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
# Makefile for backend services
.PHONY: build up down logs status dev-up dev-down
.PHONY: build up down logs status dev-up dev-down gen-proto dev-start test
build:
docker-compose build
@@ -31,3 +31,13 @@ status:
dev-status:
docker-compose -f docker-compose.dev.yml ps
gen-proto:
chmod +x ./scripts/gen-proto.sh && ./scripts/gen-proto.sh
dev-start:
chmod +x ./scripts/dev-start.sh && ./scripts/dev-start.sh
test:
echo "Running tests..."
docker-compose -f docker-compose.dev.yml run --rm user-svc sh -c "go test ./..."