This is example of Flask web-application which use Flask_Admin Panel for work with mysql using ORM SqlAlchemy.
Before running the server, you must install Flask and pybadges. You can install both with:
pip install -r requirements.txt
- And you need to run command in run.sql file to create data base and tables with Data.
- Also need to write you database pass in config.py to connect it"
To run the server, you must set the FLASK_APP environment variable before running the server using Flask:
export FLASK_APP=main.py
flask run
If it not work try this
source venv/bin/activate
flask run
After this step, you can view your badge on http://127.0.0.1:5000/