From 7307ab029a664c18f7558837bc08bf06469cb684 Mon Sep 17 00:00:00 2001 From: Jacob Windsor Date: Wed, 19 Feb 2025 13:04:27 +0100 Subject: [PATCH] Add DB commands to makefile --- Makefile | 10 ++++++---- backend/docker-compose.yml => docker-compose.yml | 0 2 files changed, 6 insertions(+), 4 deletions(-) rename backend/docker-compose.yml => docker-compose.yml (100%) diff --git a/Makefile b/Makefile index 587739e..ab070d0 100644 --- a/Makefile +++ b/Makefile @@ -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) \ No newline at end of file diff --git a/backend/docker-compose.yml b/docker-compose.yml similarity index 100% rename from backend/docker-compose.yml rename to docker-compose.yml