Simple dev target

This commit is contained in:
decentral1se 2021-06-11 14:13:55 +02:00
parent 14c810f436
commit 8ef45fd03e
Signed by: decentral1se
GPG Key ID: 92DAD76BD9567B8A
2 changed files with 6 additions and 3 deletions

View File

@ -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
```

View File

@ -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