-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
57 lines (47 loc) · 1.51 KB
/
Makefile
File metadata and controls
57 lines (47 loc) · 1.51 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
.PHONY: install
install: install-backend install-frontend install-dashboard
@echo "✓ All dependencies installed"
.PHONY: install-backend
install-backend:
@echo "Installing Python backend dependencies..."
pip install -r requirements.txt
.PHONY: install-frontend
install-frontend:
@echo "Installing Node.js frontend dependencies..."
cd agent/frontend && npm install
.PHONY: install-dashboard
install-dashboard:
@echo "Installing Node.js dashboard dependencies..."
cd dashboard-ui/new && npm install
.PHONY: backend
backend:
@echo "Starting FastAPI backend on http://localhost:8000"
uvicorn agent.backend.main:app --reload --host 0.0.0.0 --port 8000
.PHONY: frontend
frontend:
@echo "Starting Vite frontend on http://localhost:5173"
cd agent/frontend && npm run dev
.PHONY: dashboard
dashboard:
@echo "Starting dashboard..."
cd dashboard-ui/new && npm run dev
.PHONY: dashboard-chat
dashboard-chat:
@echo "Starting dashboard chat server..."
cd dashboard-ui/new && npm run server
.PHONY: prometheus
prometheus:
@echo "Starting Prometheus..."
docker compose up
all:
@echo "Starting both backend and frontend..."
@make -j2 backend frontend
# Clean generated files
clean:
@echo "Cleaning generated files..."
find . -type d -name "__pycache__" -exec rm -rf {} + 2>/dev/null || true
find . -type f -name "*.pyc" -delete
find . -type f -name "*.pyo" -delete
find . -type d -name ".pytest_cache" -exec rm -rf {} + 2>/dev/null || true
cd agent/frontend && rm -rf node_modules dist 2>/dev/null || true
@echo "✓ Cleaned"