- Clone the project
git clone git@github.com:cristianrasch/photo_gallery_py.git
- Create a new virtual environment for it
cd photo_gallery_py && python3 -m venv venv
- Install its dependencies
pip install -r requirements.txt
- Run the test suite to make sure everything is set up OK
python -m unittest discover -v -s photo_gallery/tests/
- Configure your pictures path [OPTIONAL]
mkdir instance && echo "PICS_DIR = '/path/to/pictures'" > instance/config.py
(defaults to /path/to/app/tests/fixtures)
- Run the dev server (listens on localhost:5000)
FLASK_ENV=development FLASK_APP=photo_gallery flask run
- Deploy with Fabric