- Create virtualenv <--- recommended
$virtualenv envflask
$envflask\Script\activate
1st step is optional. skip the 1st part if you don't it
- install Flask
pip install Flask
3.install python MySql Libraries
pip install mysql-connector-python
pip install mysql-connector
pip install mysqlclient
pip install flask-mysqldb
-
Run xammp or run MYSQL and create DataBase as well as Table
-
Create templates folder and create html file inside templates folder
6.create python file with POST and GET functions
- Run Python File from termial
python file-name.py
then see the magic of Flask ;)
Guide Reference:
https://www.codementor.io/adityamalviya/python-flask-mysql-connection-rxblpje73
https://dzone.com/articles/flask-101-adding-editing-and-displaying-data