Flask - blog
Initial Project Setup Required:
to create a virtual environment (first run only)
- on Windows:
 
python -m venv venv
- on *nix:
 
python3 -m venv venv
to activate the environment (every startup)
- on Windows:
 
venv/Scripts/activate
- on *nix:
 
source venv/bin/activate
Project Dependencies
- to install a particular library:
 
pip install <LIBRARY>
    e.g.:  pip install flask 
- to install all dependencies recursively from 
requirements.txtfile: 
pip install -r requirements.txt
- to see all installed dependencies in the console:
 
pip freeze
- to save the project dependencies in 
requirements.txtfile: 
pip freeze > requirements.txt
Running the project
- to run (after 
venv/Scripts/activateand specifyingFLASK_APP=...; as wellFLASK_ENV=development- if desired) 
flask run