forked from seifghazi/claude-code-proxy
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
62 lines (51 loc) · 1.4 KB
/
Makefile
File metadata and controls
62 lines (51 loc) · 1.4 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
52
53
54
55
56
57
58
59
60
61
62
.PHONY: all build run clean install dev
# Default target
all: install build
# Install dependencies
install:
@echo "📦 Installing Go dependencies..."
cd proxy && go mod download
@echo "📦 Installing Node dependencies..."
cd web && npm install
# Build both services
build: build-proxy build-web
build-proxy:
@echo "🔨 Building proxy server..."
cd proxy && go build -o ../bin/proxy cmd/proxy/main.go
build-web:
@echo "🔨 Building web interface..."
cd web && npm run build
# Run in development mode
dev:
@echo "🚀 Starting development servers..."
./run.sh
# Run proxy only
run-proxy:
cd proxy && go run cmd/proxy/main.go
# Run web only
run-web:
cd web && npm run dev
# Clean build artifacts
clean:
@echo "🧹 Cleaning build artifacts..."
rm -rf bin/
rm -rf web/build/
rm -rf web/.cache/
rm -f requests.db
rm -rf requests/
# Database operations
db-reset:
@echo "🗑️ Resetting database..."
rm -f requests.db
rm -rf requests/
# Help
help:
@echo "Claude Code Monitor - Available targets:"
@echo " make install - Install all dependencies"
@echo " make build - Build both services"
@echo " make dev - Run in development mode"
@echo " make run-proxy - Run proxy server only"
@echo " make run-web - Run web interface only"
@echo " make clean - Clean build artifacts"
@echo " make db-reset - Reset database"
@echo " make help - Show this help message"