diff --git a/Makefile b/Makefile index ab070d0..74bd667 100644 --- a/Makefile +++ b/Makefile @@ -12,8 +12,13 @@ install: install-dev: $(VENV_DIR)/bin/pip install -r $(REQ_FILE) -r requirements-dev.txt -start: install - $(VENV_DIR)/bin/python $(APP_NAME) +start: + docker compose up -d db + @echo "Waiting for the database to be ready..." + @while ! nc -z localhost 5432; do \ + sleep 1; \ + done + uvicorn backend.app.main:app --reload --host 0.0.0.0 --port 8080 --reload-include backend/app start-db: docker-compose up -d db