-
Generate a new enviroment
- in pycharm basically just make a new project its easier
- in vsc or anything else: py -m venv myenv
- in these others activate the env - myenv\Scripts\activate
-
to run either in terminal:
flask runor in pycharmm click green play -
check packages:
pip list
required base packages:
- Base flask -
pip install flask - Marshmallow intergration -
pip install flask-marshmallow - Marshmallow sqlalchemy intergration -
pip install marshmallow-sqlalchemy - Sqlalchemy intergration -
pip install flask-sqlalchemy
generating DB steps:
- Open python client -
python - Import db -
from app import db - Generate tables -
db.create_all()