Code Monkey home page Code Monkey logo

gerry-frontend's Introduction

Gerry

A gerrymandering analysis tool used to redraw district lines based on numerous heuristics centered around fairness.

Features

  • A zoomable, pannable map of the United States with display for multiple states.
  • Full breakdown of demographic and election data on the state, district and precinct levels.
  • Multiple map filters to display chloropleth for different measures.
  • A multi-phase breakdown for districting analysis.
    • Phase 0 - vote-block detection.
    • Phase 1 - initial clustering based on multiple factors among intermediate clusters.
    • Phase 2 - adjustment of clusters through swapping precincts to maximize objective function scores.
  • Asynchronous updates for data while algorithm is running.
  • Algorithm progress logging.

Built With

  • โšก React - a JavaScript library for building UIs.
  • ๐Ÿฌ Redux - a predictable state container for JS apps.
  • ๐Ÿƒ Leaflet - an open-source JavaScript library for mobile-friendly interactive maps.
  • ๐ŸŒ  StompJs - a STOMP over WebSocket client for Web browser or node.js. applications.
  • ๐ŸŒณ Spring Boot - a preconfigured version of Spring.
  • ๐Ÿป Hibernate - ORM for Java.
  • ๐Ÿณ MySQL - open source RDBMS.

Other Repositories

  • Backend
  • Preprocessing - coming soon.

Media

Splash Screen

Initial load of application.


Loading Data

Selection of state with data being loaded via websockets.


Map Filters

Map filter selection.


Phase 0

Execution of phase 0.


Phase 1

Execution of phase 1.


Phase 2

Execution of phase 2.


Phase 2 Post

Displaying phase 2 results.


Phase 1 California

Executing iterative steps for phase 1 for California.


Demo

A live preview can be seen here.

Testing Locally

React Setup

Skip this setup if you are viewing the app through Netlify. First, install all needed dependencies.

npm i

Then, start the application.

npm start

Server Setup

To test with a mock webserver, cd to ./server and start the server.

cd ./server && npm i

Then, start the server.

npm start

gerry-frontend's People

Contributors

dependabot[bot] avatar devhid avatar snyk-bot avatar spiderpig86 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.