@@ -0,0 +1,22 @@
|
||||
.PHONY: install migrate seed run test check
|
||||
|
||||
install:
|
||||
python3 -m venv .venv
|
||||
.venv/bin/pip install -r requirements-dev.txt
|
||||
|
||||
migrate:
|
||||
cd backend && ../.venv/bin/python manage.py migrate
|
||||
|
||||
seed:
|
||||
cd backend && ../.venv/bin/python manage.py seed_initial_content
|
||||
cd backend && ../.venv/bin/python manage.py seed_contests
|
||||
|
||||
run:
|
||||
cd backend && ../.venv/bin/python manage.py runserver
|
||||
|
||||
test:
|
||||
.venv/bin/python -m pytest -q
|
||||
|
||||
check:
|
||||
cd backend && ../.venv/bin/python manage.py check
|
||||
cd backend && ../.venv/bin/python manage.py makemigrations --check --dry-run
|
||||
Reference in New Issue
Block a user