A simple demo of the Python Flask framework using mysql as a backend
Creates a simple api for adding users to a mysql table
git clone https://github.com/RamSailopal/flask-mysql-demo.git
cd flask-mysql-demo
docker-compose up
On completion of the provisioning of the environment, navigate to http://serveraddress:5000/user to GET and POST data
mysql> select * from Users;
+----+------+-----+-----+
| id | name | age | sex |
+----+------+-----+-----+
| 1 | Ram | 21 | M |
| 2 | Bob | 52 | M |
+----+------+-----+-----+
2 rows in set (0.00 sec)
A crude front-end to demonstate the use of Jinja templates has been added.
To view the front-end, navigate to: