33 lines
679 B
Makefile
33 lines
679 B
Makefile
.PHONY: dev backend frontend test seed install package
|
|
|
|
ifeq ($(OS),Windows_NT)
|
|
VENV_BIN := .venv/Scripts
|
|
PYTHON_SYS := python
|
|
else
|
|
VENV_BIN := .venv/bin
|
|
PYTHON_SYS := python3
|
|
endif
|
|
|
|
dev:
|
|
$(MAKE) -j2 backend frontend
|
|
|
|
backend:
|
|
cd backend && "$(VENV_BIN)/uvicorn" app.main:app --reload --port 8000
|
|
|
|
frontend:
|
|
cd frontend && npm run dev
|
|
|
|
test:
|
|
cd backend && "$(VENV_BIN)/python" -m pytest tests/ -v
|
|
|
|
seed:
|
|
cd backend && "$(VENV_BIN)/python" -m app.seed.seed
|
|
|
|
install:
|
|
$(PYTHON_SYS) -m venv backend/.venv
|
|
"backend/$(VENV_BIN)/pip" install -r backend/requirements.txt
|
|
cd frontend && npm install
|
|
|
|
package:
|
|
git archive --format=zip --output=../poona-ams-delivery.zip HEAD
|