English | 简体中文
Record audio on the web page, store files locally, fill out forms, and store them in a structured database(MySQL). The two correspond by file name.
only requires the following files.
root
└─main.py # run flask server
└─templates
│ └─index.html # front end HTML
└─databasekits
└─table_packets.py
The other files are not necessary.
run MySQL service.
[XXX@localhost]$ systemctl start mysqld
run flask server.
python3 main.py
open index.html through 127.0.0.1:8000
then record your cough audio and fill out the form blocks, then submit it.
sudo mysql -uroot -p
>{root password}
>{root password}
> use {database name}
>select * from {tablename}