-
Install required dependencies:
sudo apt install python3 python3-pip python3-virtualenv
-
Clone this project:
git clone [email protected]:cubisttriangle/BotaniCam.git
-
Enter project directory:
cd BotaniCam
-
If you haven't already, create a virtual environment:
mkdir ./venv
virtualenv ./venv
-
Activate the virtual environment:
source ./venv/bin/activate
-
Install required packages:
pip install -r ./requirements.txt
-
Run the app locally:
FLASK_APP=webapp python -m flask run
-
When you're done, stop the flask process. Then deactivate the virtual environment with:
deactivate
To override the settings in config.py. Create a folder in the top-level project directory called instance and add your custom config.py there.
-
Create instance directory. This shouldn't be added to version control.
mkdir instance
-
Copy the config.py from the root directory to your instance folder and override whatever variables you like.
cp ./config.py ./instance/config.py