Add init
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
# Variables
|
||||
APP_NAME=app/main.py
|
||||
VENV_DIR=venv
|
||||
REQ_FILE=requirements.txt
|
||||
|
||||
# Create virtual environment
|
||||
venv:
|
||||
python3 -m venv $(VENV_DIR)
|
||||
|
||||
# Install dependencies
|
||||
install: venv
|
||||
$(VENV_DIR)/bin/pip install -r $(REQ_FILE)
|
||||
|
||||
# Run the application
|
||||
start: install
|
||||
$(VENV_DIR)/bin/python $(APP_NAME)
|
||||
|
||||
# Clean up
|
||||
clean:
|
||||
rm -rf $(VENV_DIR)
|
||||
Reference in New Issue
Block a user