murphyslemon / Raspberry_Pi_Server

International Sensor Development Project: This project is a voting system that uses a raspberry pi server and multiple voting devices. The system is easy, secure, scalable, and supports anonymous and registered voting. This repository focuses on the Raspberry Pi server.
0 stars 3 forks source link

Light flask server.

This is a light version of the flask server made for the ESP team to enable testing.

Requirements.

The server requires all of the following installed on the machine running the server.

Setup

Install mosquitto from https://mosquitto.org/download/ by following the official instructions. Once mosquitto is up and running on the machine simply run the code for the flask server on the machine. You can confirm if the flask server is setup by opening http://127.0.0.1:5000.

The code expects the credentials for the DB to be located at "/isdProjectImports/credentials.py".
The code should look as follows:

dbUsername = ''
dbPassword = ''
dbHostname = ''
dbPort = ''
dbName = ''