Back end functionality for the HIE sensor management tool. Front end can be found here.
v1.0.0 released 12/14/18 by Teresa Mao, Claire Niederriter, and Jaydeep Sambangi
This repository holds a Flask app that runs on localhost:5000
which communicates with the React front end to service its RESTful API requests. It also communicated with a local MySQL database, configured as described below. This server supports the following routes:
/
/api/dashr/find_pins
/api/dashr/upload
CREATE TABLE dashr (pin INTEGER, data LONGTEXT, dashr_create_time DATETIME, session_time DATETIME, PRIMARY KEY(pin, dashr_create_time))
CREATE TABLE serial_pin (serial INTEGER PRIMARY KEY, pin INTEGER)
serial_pin
table with the following two values, taken from the two DASHRs used for testing:
INSERT INTO serial_pin VALUES (261122326, 435), (261791206, 9307)
config.py
file in this respository (locally - this is in the .gitignore and will not be added to git).mysql = {'host': [db host], 'user': [user], 'password': [password], 'db': [name of db]}
The back end server can be spun up locally by calling FLASK_APP = app.py flask run
while inside the root of the repository.