22#
33# SPDX-License-Identifier: MIT
44
5- .PHONY : help lint lint-frontend lint-backend lint-licensing test test-frontend test-backend format format-frontend format-backend docker-build docker-build-frontend docker-build-backend docker-run-frontend docker-run-backend docker-stop docker-clean
5+ .PHONY : help \
6+ dev install install-frontend install-backend \
7+ lint lint-frontend lint-backend lint-licensing type-check-backend \
8+ format format-frontend format-backend \
9+ test test-frontend test-backend \
10+ run-backend-local run-frontend-local \
11+ docker-build docker-build-frontend docker-build-backend \
12+ docker-run-frontend docker-run-backend \
13+ docker-stop docker-clean
614
715help :
816 @echo " make"
9- @echo " dev (or install)"
10- @echo " install all dependencies for development"
11- @echo " install-frontend"
12- @echo " install frontend dependencies (npm)"
13- @echo " install-backend"
14- @echo " install backend dependencies (uv)"
15- @echo " lint"
16- @echo " runs all linters and type checking (frontend, backend, licensing)"
17- @echo " lint-frontend"
18- @echo " lints frontend code with npm run lint"
19- @echo " lint-backend"
20- @echo " lints backend Python code with ruff"
21- @echo " lint-licensing"
22- @echo " lints licensing files with reuse"
23- @echo " type-check-backend"
24- @echo " type checks backend Python code with mypy"
25- @echo " format"
26- @echo " formats all code (frontend and backend)"
27- @echo " format-frontend"
28- @echo " formats frontend code with prettier"
29- @echo " format-backend"
30- @echo " formats backend Python code with ruff"
31- @echo " test"
32- @echo " runs all tests (frontend and backend)"
33- @echo " test-frontend"
34- @echo " runs frontend tests with vitest"
35- @echo " test-backend"
36- @echo " runs backend tests with pytest"
37- @echo " docker-build"
38- @echo " builds all Docker images (frontend and backend)"
39- @echo " docker-build-frontend"
40- @echo " builds frontend Docker image"
41- @echo " docker-build-backend"
42- @echo " builds backend Docker image"
43- @echo " docker-run-frontend"
44- @echo " runs frontend container on port 8080"
45- @echo " docker-run-backend"
46- @echo " runs backend container on port 8000"
47- @echo " docker-stop"
48- @echo " stops running containers"
49- @echo " docker-clean"
50- @echo " stops containers and removes Docker images"
17+ @echo " dev (or install)"
18+ @echo " install all dependencies for development"
19+ @echo " install-frontend"
20+ @echo " install frontend dependencies (npm)"
21+ @echo " install-backend"
22+ @echo " install backend dependencies (uv)"
23+ @echo " lint"
24+ @echo " runs all linters and type checking (frontend, backend, licensing)"
25+ @echo " lint-frontend"
26+ @echo " lints frontend code with npm run lint"
27+ @echo " lint-backend"
28+ @echo " lints backend Python code with ruff"
29+ @echo " type-check-backend"
30+ @echo " type checks backend Python code with mypy"
31+ @echo " lint-licensing"
32+ @echo " lints licensing files with reuse"
33+ @echo " format"
34+ @echo " formats all code (frontend and backend)"
35+ @echo " format-frontend"
36+ @echo " formats frontend code with prettier"
37+ @echo " format-backend"
38+ @echo " formats backend code with ruff"
39+ @echo " test"
40+ @echo " runs all tests (frontend and backend)"
41+ @echo " test-frontend"
42+ @echo " runs frontend tests with vitest"
43+ @echo " test-backend"
44+ @echo " runs backend tests with pytest"
45+ @echo " run-backend-local"
46+ @echo " runs backend locally with uvicorn"
47+ @echo " run-frontend-local"
48+ @echo " runs frontend locally with Vite (uses VITE_BACKEND_URL)"
49+ @echo " docker-build"
50+ @echo " builds all Docker images (frontend and backend)"
51+ @echo " docker-build-frontend"
52+ @echo " builds frontend Docker image"
53+ @echo " docker-build-backend"
54+ @echo " builds backend Docker image"
55+ @echo " docker-run-frontend"
56+ @echo " runs frontend container on port 8080"
57+ @echo " docker-run-backend"
58+ @echo " runs backend container on port 8000"
59+ @echo " docker-stop"
60+ @echo " stops running containers"
61+ @echo " docker-clean"
62+ @echo " stops containers and removes Docker images"
5163
5264dev : install
5365
@@ -63,7 +75,7 @@ install-backend:
6375 cd src/backend && uv pip install -r requirements.txt
6476 cd src/backend && uv pip install -r requirements-dev.txt
6577
66- lint : lint-frontend lint-backend lint-licensing type-check-backend
78+ lint : lint-frontend lint-backend lint-licensing
6779
6880lint-frontend :
6981 cd src/frontend && npm run lint
@@ -91,6 +103,12 @@ test-frontend:
91103test-backend :
92104 cd src/backend && uv run pytest
93105
106+ run-backend-local :
107+ cd src/backend && uv run uvicorn webrtc.server:app --host 0.0.0.0 --port 8000
108+
109+ run-frontend-local :
110+ cd src/frontend && VITE_BACKEND_URL=http://localhost:8000 npm run dev
111+
94112docker-build : docker-build-frontend docker-build-backend
95113
96114docker-build-frontend :
0 commit comments