File size: 1,419 Bytes
ecda45f
 
 
 
 
 
 
9c38802
 
 
 
 
 
 
ecda45f
 
 
 
 
 
 
 
 
 
 
9c38802
 
 
 
 
 
 
ecda45f
 
9c38802
ee2a25c
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
.PHONY: dev frontend test build docker-run schema clean-db install

# ── Local dev ────────────────────────────────────────────────────────────────

install:
	uv sync
	cd frontend && npm install

dev:
	uv run uvicorn backend.main:app --reload --port 7860

frontend:
	cd frontend && npm run dev

# ── Database ─────────────────────────────────────────────────────────────────

schema:
	uv run python backend/db/apply_schema.py

clean-db:
	uv run python backend/db/clean_db.py
	uv run python backend/db/apply_schema.py

# ── Tests & build ────────────────────────────────────────────────────────────

test:
	uv run pytest tests/ -v

build:
	cd frontend && npm run build
	docker build -t ai-interviewmentor .

# ── Docker ───────────────────────────────────────────────────────────────────

docker-run:
	docker run --name ai-interviewmentor --env-file .env -p 7860:7860 --rm ai-interviewmentor