Add DB commands to makefile

This commit is contained in:
Jacob Windsor 2025-02-19 13:04:27 +01:00
parent 06173658b2
commit 7307ab029a
2 changed files with 6 additions and 4 deletions

View File

@ -3,21 +3,23 @@ APP_NAME=app/main.py
VENV_DIR=venv
REQ_FILE=backend/requirements.txt
# Create virtual environment
venv:
python3 -m venv $(VENV_DIR)
# Install dependencies
install:
$(VENV_DIR)/bin/pip install -r $(REQ_FILE)
install-dev:
$(VENV_DIR)/bin/pip install -r $(REQ_FILE) -r requirements-dev.txt
# Run the application
start: install
$(VENV_DIR)/bin/python $(APP_NAME)
# Clean up
start-db:
docker-compose up -d db
stop-db:
docker-compose down
clean:
rm -rf $(VENV_DIR)