First you have to initialize the Database file:
run this command in a new terminal in your project directory:
>>export FLASK_APP=__init__.py
>>export FLASK_ENV=development
>>python -m flask init-db
Initialized the database.
There will now be a final_project.sqlite
file in the instance folder in your project.
Everytime you use a new terminal, remember to change to your project directory and activate the env as described.
After initialize the database file, you can run the python file:
python -m flask run
http://flask.pocoo.org/docs/1.0/tutorial/factory/
pip install -r requirements.txt
API_KEY = your api key from fliker