Starting off
Once more, as we did in the previous chapters, let's create a completely new directory and virtual environment for this application:
$ mkdir -p ~/src/shutterbug && cd ~/src/shutterbug $ mkvirtualenv shutterbug $ pip install flask flask-sqlalchemy pytest-flask flask-bcrypt
Create the following application layout to start:
├── application/ │ ├── __init__.py │ └── resources │ ├── __init__.py │ └── photos.py ├── conftest.py ├── database.py ├── run.py ├── settings.py └── tests/
Note
The application layout presented here is different from the typical Blueprint-based structure that we used in previous chapters; we will use the suggested layout for typical Flask-RESTful applications, which also suits the simplicity of the Shutterbug application.