20 lines
390 B
Makefile
20 lines
390 B
Makefile
PY := .venv/bin/python
|
|
PIP := .venv/bin/pip
|
|
|
|
install:
|
|
python3 -m venv .venv
|
|
$(PIP) install -r backend/requirements.txt
|
|
cd frontend && npm install
|
|
|
|
dev:
|
|
$(PY) -m uvicorn backend.main:app --reload --port 8000 & cd frontend && npm run dev
|
|
|
|
test:
|
|
CREATOR_FAKE=1 $(PY) -m pytest -x -q
|
|
|
|
test-e2e:
|
|
CREATOR_FAKE=1 $(PY) -m pytest -x -q tests/test_e2e.py
|
|
|
|
build:
|
|
cd frontend && npm run build
|