Skip to content

Visualize & modify U.S. election data at the precinct level using an interactive map interface.

Notifications You must be signed in to change notification settings

shortland/Election-Data-Quality

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Election Data Quality

Project Description

CSE 416 course project. The goal of the project is to provide users with an easily understandable visual representation of different elections' voting data in a comprehensive and unified manner.

There is currently no mainstream reference in gathering and visualizing election data in the U.S. at the detailed level of a precinct/election ward. The hopeful goal of this project is to provide something that can be the start of exactly that.

Live site: https://ElectionDataQuality.com

Project Members

Frontend

Developed in Javascript with React and Bootstrap.

react-mapbox-gl

Frontend Install/Build/Run/Deploy

After cloning the directory and entering the frontend directory, follow the below instructions.

Install Dependencies

$ yarn

Run Project

$ yarn start

Deploy Project to GitHub-Pages

$ yarn run deploy

Backend

Developed in Java with SpringBoot.

Backend Install/Build/Run/Deploy

After cloning the directory and entering the backend directory, follow the below instructions.

Note: this project uses gradle - not maven.

Building .jar executable

$ ./gradlew build

Deploying latest server-code to the server

$ ./gradlew deploy

More info on how the backend handles the deploy can be found in the branch: upgrader-servlet.

Executing .jar executable locally

$ java -jar build/libs/rest-service-0.0.1-SNAPSHOT.jar

Database

MySQL Server.

Database Login

Web Interface: Login

Username: jerryman
Password: JerryManderingIsBad123!
IP Address: 45.55.121.121:3306

States

Sample State Data

  • Wisconsin
  • Utah
  • New York

Data Sources

Misc

Wisconsin

Geographic Data:

Demographic Data:

Voter Data:

Other Data:

  • State Parks

Utah

Geographic Data:

Demographic Data

Voter Data

Other Data:

New York

Geographic Data:

Demographic Data:

Voter Data:

County FIPS Codes:

  • County FIPS is a unique number that identifies each county in the whole country.

  • Our precinct boundary data (from Harvard) shows each of the precincts with a County FIPS code concatenated with county-level-precinct # identifying the precinct (# starting from 1..n precincts in the whole state), so this code help in identifying what goes where.

  • FIPS to County Code Chart

Must visit each individual NYS county's website to get the results of its precincts.