This is a server and database system designed to support the Driver Awareness Monitoring app.
The app, which can be accessed through its GitHub repository here, uses a Python-based Flask server to interact with a MySQL database.
The database is created and managed using Python code.
- Download MySQL.
- Edit the credentials.json file to contain your MySQL username and password.
- Install the necessary requirements by running the following command in your terminal:
pip install -r requirements.txt
- Create the database by running the following command in the terminal:
python -m run_db
You can delete the existing database and tables using the -d flag before creating new ones.
- Run the server by running the following command in the terminal:
python -m run_server
The server is utilized by the app to store and retrieve data from the database.
The server is also responsible for processing the data before and after it is saved in the database.