-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
66 lines (49 loc) · 1.8 KB
/
Copy pathMakefile
File metadata and controls
66 lines (49 loc) · 1.8 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
63
64
65
66
# Unified entry point for the monorepo.
# Python deps live in the repo-root .venv (vllm, fastapi, pytest, ...).
VENV ?= .venv
PY := $(VENV)/bin/python
PYTEST := $(PY) -m pytest
COMPOSE := docker compose -f deploy/docker-compose.yaml
.PHONY: help test test-backend test-router test-schema \
dev-backend dev-frontend build-frontend install-frontend \
up down logs ps build
help:
@echo "Targets:"
@echo " test Run all Python test suites (backend + router + config-schema)"
@echo " test-backend Backend pytest (apps/backend)"
@echo " test-router Router pytest (apps/router-server)"
@echo " test-schema Config-schema pytest (packages/config-schema)"
@echo " dev-backend Run the dashboard backend (uvicorn, :5000)"
@echo " dev-frontend Run the Vue dashboard dev server"
@echo " build-frontend Production build of the frontend"
@echo " --- docker (deploy/docker-compose.yaml) ---"
@echo " up Build + start the whole stack in the background"
@echo " down Stop + remove the stack"
@echo " logs Tail logs from all services"
@echo " ps Show service status"
@echo " build Build images without starting"
up:
$(COMPOSE) up -d --build
down:
$(COMPOSE) down
logs:
$(COMPOSE) logs -f
ps:
$(COMPOSE) ps
build:
$(COMPOSE) build
test: test-backend test-router test-schema
test-backend:
cd apps/backend && $(abspath $(PYTEST))
test-router:
cd apps/router-server && $(abspath $(PYTEST))
test-schema:
cd packages/config-schema && $(abspath $(PYTEST))
dev-backend:
cd apps/backend && $(abspath $(PY)) -m uvicorn main:app --reload --host 0.0.0.0 --port 5000
dev-frontend:
cd apps/frontend && npm run dev
build-frontend:
cd apps/frontend && npm run build
install-frontend:
cd apps/frontend && npm install