-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
51 lines (42 loc) · 1.2 KB
/
Makefile
File metadata and controls
51 lines (42 loc) · 1.2 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
39
40
41
42
43
44
45
46
47
48
49
50
51
.PHONY: build run test clean proto help
# Build all services
build:
go build -o bin/user-service ./services/user-service/cmd
go build -o bin/order-service ./services/order-service/cmd
go build -o bin/payment-service ./services/payment-service/cmd
# Run with docker-compose
run:
docker-compose up --build
# Run services locally (for development)
run-local:
go run ./services/user-service/cmd &
go run ./services/order-service/cmd &
go run ./services/payment-service/cmd &
# Generate protobuf code
proto:
./scripts/generate-proto.sh
# Run tests
test:
go test ./...
# Run integration tests
test-integration:
go test ./tests/integration/...
# Clean build artifacts
clean:
rm -rf bin/
docker-compose down --volumes
# Install dependencies
deps:
go mod tidy
go mod download
# Help
help:
@echo "Available commands:"
@echo " build - Build all services"
@echo " run - Run with docker-compose"
@echo " run-local - Run services locally"
@echo " proto - Generate protobuf code"
@echo " test - Run unit tests"
@echo " test-integration - Run integration tests"
@echo " clean - Clean build artifacts"
@echo " deps - Install dependencies"