Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 1.19 KB

File metadata and controls

32 lines (26 loc) · 1.19 KB

Db-and-Server-For-Awareness-Detection-App

Description

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.

Installation

  1. Download MySQL.
  2. Edit the credentials.json file to contain your MySQL username and password.
  3. Install the necessary requirements by running the following command in your terminal:
pip install -r requirements.txt
  1. 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.

  1. Run the server by running the following command in the terminal:
python -m run_server

Usage

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.

License

MIT