diff --git a/README.md b/README.md index 5bac580..d552fc2 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,5 @@ your technology stack. It's a [FastAPI](https://fastapi.tiangolo.com/) application. ``` -$ python3 -m venv .venv && source .venv/bin/activate -$ pip install -e . $ make ``` diff --git a/makefile b/makefile index c6620d2..ee93c4e 100644 --- a/makefile +++ b/makefile @@ -2,4 +2,9 @@ .PHONY: run run: - @uvicorn keycloak_collective_portal:app --reload + @if [ ! -d ".venv" ]; then \ + python3 -m venv .venv && \ + .venv/bin/pip install -U pip setuptools wheel poetry && \ + .venv/bin/poetry install --dev; \ + fi + .venv/bin/poetry run uvicorn keycloak_collective_portal:app --reload