-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (31 loc) · 1.04 KB
/
Copy pathMakefile
File metadata and controls
38 lines (31 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
.PHONY: help build run clean deps test auth-service file-service stop-all
help:
@echo "Available targets:"
@echo " build - Build both services"
@echo " run - Run both services"
@echo " auth-service - Run only auth service"
@echo " file-service - Run only file service"
# Build both services
build: build-auth build-file
build-auth:
@echo "Building auth service..."
cd auth-service && go build -o auth-service main.go
build-file:
@echo "Building file service..."
cd file-service && go build -o file-service main.go
# Run services
run: build
@echo "Starting both services..."
@echo "Auth service will run on port 8080"
@echo "File service will run on port 8081"
@echo "Press Ctrl+C to stop both services"
cd auth-service && ./auth-service &
cd file-service && ./file-service &
wait
# Run individual services
auth-service: build-auth
@echo "Starting auth service on port 8080..."
cd auth-service && go run main.go
file-service: build-file
@echo "Starting file service on port 8081..."
cd file-service && go run main.go