Files
2026-02-09 16:09:14 +08:00

28 lines
624 B
Makefile

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"