Skip to content

Latest commit

 

History

History
107 lines (65 loc) · 2.46 KB

File metadata and controls

107 lines (65 loc) · 2.46 KB

Electoral Database System

A electoral system with a SQL database that performs caculations on the data to provide final results

📔 Table of Contents

🌟 About the Project

Database

🎨 Color Reference

Color Hex
Primary Color #bb38db #bb38db
Secondary Color #393E46 #393E46
Accent Color #00ADB5 #00ADB5
Text Color #EEEEEE #EEEEEE

🔑 Environment Variables

To run this project, you will need to add the following environment variables to your .env file

DB_USER

DB_PASS

🧰 Getting Started

‼️ Prerequisites

  • Install MySQL Server Here
sudo dnf install mysql-community-server
sudo dnf install python

⚙️ Installation

Flask

pip install flask

mysql-connector

pip install mysql-connector-python

🏃 Run Locally

Clone the project

https://github.com/LadishDev/Electoral-System

Go to Project Directory

cd Electoral-System

Setup MySQL server with Scheme and data

mysql -uladish -p < /Documents/Electoral-System/sql-commands.sql

Start the python script to calculate results and host web server

python .\electoral-system.py

⚠️ License

Distributed under the no License. See LICENSE.txt for more information.

🤝 Contact

Callum - developer@ladish.dev

Project Link: https://github.com/LadishDev/Electoral-System