-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (35 loc) · 981 Bytes
/
Makefile
File metadata and controls
46 lines (35 loc) · 981 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
39
40
41
42
43
44
45
46
.PHONY: run test build clean setup dev frontend backend
# --- Setup ---
setup:
cd backend && pip install -r requirements.txt
cd frontend && npm install
# --- Development ---
dev:
@echo "Start backend and frontend in separate terminals:"
@echo " Terminal 1: make backend"
@echo " Terminal 2: make frontend"
backend:
cd backend && uvicorn app.main:app --reload --port 5001
frontend:
cd frontend && npm run dev
# --- Testing ---
test:
cd backend && python -m pytest tests/ --tb=short -q
test-verbose:
cd backend && python -m pytest tests/ -v --tb=short
# --- Docker ---
build:
docker compose build
up:
docker compose up -d
down:
docker compose down
# --- Utilities ---
clean:
rm -f backend/predictwallet.db
rm -rf backend/chroma_db
rm -rf backend/ml/artifacts/categorizer
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
find . -type d -name .pytest_cache -exec rm -rf {} + 2>/dev/null || true
format:
cd frontend && npm run build