- Built with purpose of pentesting web applications for vulnerabilities
pip install -r requirements.txt
source venv/bin/activate
export FLASK_APP=server.pyexport FLASK_DEBUG=1- Run server:
flask run
flask db init- will create a new migrations directory
- Application uses SQLlite, can integrate postgres if needed
flask db migrate -m "table name"- flag descriptive text to migration
- will compare models to actual db and generate script to handle changes to models
flask db upgrade- Creates new DB with models applied, will generate new file app.db
- Note: If using Postgres, will need to create db first before running command.
flask db downgrade
flask shell
flask shellnew_user = User(username='whatever', email='[email protected]')new_user.set_password('whatever')db.session.add(new_user)db.session.commit()