Add DB commands to makefile
This commit is contained in:
parent
06173658b2
commit
7307ab029a
10
Makefile
10
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)
|
||||
Loading…
x
Reference in New Issue
Block a user