Prerequisites:
- Python
- pip3
- install virtualenv from pip using
pip install virtualenv
- The above command installs utility to create a virtual environment
- Check on google how to activate venv on windows
- After venv is activated we can then enter the command
pip3 install -r requirements.txt
The following are the commands to add a user via the flask shell into the db but before we can do that we need to delete the migrations folder and app.db from the current repo
flask db init
flask db migrate
flask db upgrade
flask shell
from app import models,db
user = models.User(username="demo",email="demo")
user.set_password("pass")
db.session.add(user)
db.session.commit()
flask run