Skip to content

This is a single page application that takes data scraped from Twitter and Reddit and plots incidents of police brutality across the United States on an interactive map. A user is able to search through incidents and view them on a timeline visual.

License

Notifications You must be signed in to change notification settings

BloomTech-Labs/Labs25-Human_Rights_First-TeamB-FE

Folders and files

NameName
Last commit message
Last commit date
Jul 31, 2020
Jul 31, 2020
Sep 23, 2020
Sep 30, 2020
Aug 25, 2020
Jul 31, 2020
Sep 8, 2020
Jul 31, 2020
Jul 31, 2020
Jul 31, 2020
Jul 31, 2020
Jul 31, 2020
Sep 30, 2020
Jul 31, 2020
Jul 31, 2020
Jul 31, 2020
Sep 22, 2020
Sep 22, 2020
Aug 10, 2020

Repository files navigation

Human Rights First - Incidents of Excessive Use of Force by Police

video presentation

This is a single page application that takes data scraped from Twitter and Reddit and plots incidents of police brutality across the United States on an interactive map. A user is able to search through incidents and view them on a timeline visual.

Front End

  • React
  • Google Maps API
  • Timeline & Collapisible Components
  • AntDesign
  • LESS

Key Features

Interactive Map - Google Maps API

The Google Maps API allows us to render upwards of 1000 different markers, cluster them, and maintain interactability with each of the markers.

Search Functionality

The search functionality is built using collapsible components. It is synced up to the backend database and processes a GET request each time a user submits a search query.

Timeline

The timeline is built using the vertical-timeline-component-for-react package. This package allows us to save the effort of designing our own timeline and display incidents in a visual manner seperate from the interactive map.

Room For Improvement

  • It may be worth exploring heatmaps or spidering markers going forward in this project if better coordinates data is not available.
  • It would be beneficial to move the API calls and state to a parent component, such as an App.js. This would allow us to have interoperability between components and reduce the amount of API calls being made.
  • It may be worth introducing some routing for a better userflow (a new page for the timeline component for example).
  • Design could use some improvements. Unsure if the left side nav (grey area) will be used. This could be scrapped if a future group doesn't see use for it.

Installation

  • Navigate to the root directory
  • npm install & npm start

About

This is a single page application that takes data scraped from Twitter and Reddit and plots incidents of police brutality across the United States on an interactive map. A user is able to search through incidents and view them on a timeline visual.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published