https://realpython.com/flask-by-example-part-2-postgres-sqlalchemy-and-alembic/
Installing requirements:
python3.6 -m venv envsource env/bin/activatepip install -r requirements
echo "source which activate.sh" >> ~/.bashrc
source ~/.bashrc
Installing database:
initdb -D database/data
Starting the database:
postgres -D database/data
Migrating the database:
python manage.py db initpython manage.py db migratepython manage.py db upgrade