$ sudo apt-get install python3-venv # ( for linux only to install venv as it isn't there by default)
$ python3 -m venv pyenv
$ source ./pyenv/scripts/activate # (to activat e the virtual environment from git bash)
$ ./pyenv/scripts/activate #(to activat e the virtual environment from powershell or cmd )
* start pasql app
* enter your credentials username, password, database
* enter the following `\l`
* now you should see the list of databases
* enter the following `create database school;`
* enter the following `\l` again
* now you should see database school created
Migrating database
pip install Flask-Migrate --> (requirement)
flask db init --> makes a migration folder
flask db migrate -m "inital migration" --> produces the migration file that will be later applied to the database
flask db upgrade --> applies the migration file from the previous step
running flask
on windows
set FLASK_APP=app.py
set FLASK_DEBUG=1
flask run
on Linux
export FLASK_APP=app.py
export FLASK_DEBUG=1
flask run