-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (29 loc) · 901 Bytes
/
Makefile
File metadata and controls
38 lines (29 loc) · 901 Bytes
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
.PHONY: demo frontend-init backend-init backend frontend start stop
all: demo
demo: start
@echo "Loading demo..."
@cd demo && uv sync
@cd demo && uv run python main.py
@echo "Demo data loaded"
frontend-init:
@cd frontend && npm install
frontend: frontend-init
@echo "Starting frontend..."
@cd frontend && nohup npm run dev -- --host > frontend.log 2>&1 &
@echo "Frontend started http://localhost:5173"
backend-init:
@cd backend && uv sync
backend:
@echo "Starting backend..."
@cd backend && uv run uvicorn main:app --reload > backend.log 2>&1 &
@echo "Backend started on http://localhost:8000"
start: backend frontend
stop:
@echo "Stopping backend and frontend..."
@pkill -f "uvicorn main:app" || true
@pkill -f "npm run dev" || true
@echo "Backend and frontend stopped"
check:
cd backend && uv run ruff check
cd demo && uv run ruff check
cd notebooks && uv run ruff check