- python3
- python3-dev
- libmysqlclient-dev
- mariadb (mysql should be supported as well)
- see requirements.txt
Note these are *nix instructions, usage on Windows may be different. Using a *nix system is highly recommended to avoid any undue frustration.
Install system requirements
$ apt-get install python3 python3-dev libmysqlclient-dev mariadb
Setup mariadb
$ echo "you're on your own here for now."
Install pip requirements
$ pip insall -r requirements.txt
{
"user": "mysql_user",
"password": "mysql_user's_password",
"host": "mysql_server_ip",
"db_name": "mysql_database"
}
$ python3 database.py create
Debug
$ make debug # Run with flask debugger
Run as application
$ make run # Run application