This commit is contained in:
vipg
2026-02-09 16:09:14 +08:00
parent 4541b322b3
commit a8b04bca12
8 changed files with 203 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
SHELL := /bin/sh
.PHONY: bootstrap tidy-all run-user run-country test-all
bootstrap:
@echo "Initializing go.work..."
@go work init || true
@go work use ./common || true
@go work use ./services/user || true
@go work use ./services/country || true
tidy-all:
@echo "Running go mod tidy for all modules..."
@cd common && go mod tidy
@cd services/user && go mod tidy
@cd services/country && go mod tidy
run-user:
@echo "Starting user service..."
@cd services/user && PORT=8080 go run .
run-country:
@echo "Starting country service..."
@cd services/country && PORT=8081 go run .
test-all:
@echo "No tests yet"