-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (21 loc) · 975 Bytes
/
Makefile
File metadata and controls
24 lines (21 loc) · 975 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
.PHONY: deps run clean
deps:
@echo "Initializing Go modules for each service..."
@cd shared && go mod init example.com/microservices/shared 2>/dev/null || true
@cd auth-service && go mod init example.com/microservices/auth 2>/dev/null || true
@cd auth-service && go mod edit -replace example.com/microservices/shared=../shared
@cd auth-service && go mod tidy
@cd user-service && go mod init example.com/microservices/user 2>/dev/null || true
@cd user-service && go mod edit -replace example.com/microservices/shared=../shared
@cd user-service && go mod tidy
@cd api-gateway && go mod init example.com/microservices/gateway 2>/dev/null || true
@cd api-gateway && go mod edit -replace example.com/microservices/shared=../shared
@cd api-gateway && go mod tidy
run:
@echo "Starting microservices with devloop..."
@devloop -c .devloop.yaml
clean:
@echo "Cleaning up..."
@rm -f auth-service/auth-server
@rm -f user-service/user-server
@rm -f api-gateway/gateway