Giter Site home page Giter Site logo

bloomtech-labs / human-rights-first-police-fe-a Goto Github PK

View Code? Open in Web Editor NEW
6.0 13.0 38.0 3.67 MB

Project sponsored by Humans Rights First (http://humanrightsfirst.org) that visualizes user reported data around police use of force in the United States.

License: MIT License

JavaScript 88.72% HTML 0.20% CSS 9.58% Less 1.51%

human-rights-first-police-fe-a's Introduction

Human Rights First FE

Description

Our team is developing an interactive map that identifies potential instances of police use-of-force across the United States of America for Human Rights First, an independent advocacy and action organization. Here is a little the non-profit from their website:

Human Rights First is an independent advocacy and action organization that challenges America to live up to its ideals. We believe American leadership is essential in the global struggle for human rights, so we press the U.S. government and private companies to respect human rights and the rule of law. When they fail, we step in to demand reform, accountability and justice. Around the world, we work where we can best harness American influence to secure core freedoms. We know it is not enough to expose and protest injustice, so we create the political environment and policy solutions necessary to ensure consistent respect for human rights. Whether we are protecting refugees, combating torture, or defending persecuted minorities, we focus not on making a point, but on making a difference. For almost 40 years, we've built bipartisan coalitions and teamed up with frontline activists and lawyers to tackle global challenges that demand American leadership. Human Rights First is a non-profit, nonpartisan international human rights organization based in New York, Washington D.C., Houston, and Los Angeles.

Contributors

Labs 39

Luiza Coelho Andrew Busby

Labs 38

Kelly Jerrell Austin Carman Ethan Edmond Ahmed Serag Jeremiah Candelaria

Labs 37

Alvin Joseph Cooper Jackson Devin Mitchell Johnny Murillo Ryan Dill Tony Yang Nicholas Cabuno

Labs 36

Jalpa Shah Alex Pfeifer Leon Nasswetter Bradley Hubbs Daniel Vargas Ryan H. Daniel B. Kim

Labs 35

Anas Abdelsalam Alex Ardanov Caroline Lucas Hairo Garcia Max Huckstepp Stephanie Enciso Will Berman Alexis Marroquin Anhutan Tran Casey Cerrito Joshua Samaneigo Jose Robles Jonathan Majors Damaris Garcia

Labs 35 Notion Document

Labs 34

Robert Petersen

Brandon Santos

John Chamberlin

Labs 33

Lindsay Deaton

Will Mondal

Paul Kim

labs 32

Samuel Lee

Michael Maton

Brett McAdams

Christopher Barrett

Labs 31

Victoria Mount

Maria Olsen

Sam Tarullo

Will Wearing

Previous Teams

Labs 30

Jason Long (Technical Project Lead)

Mark Rivera

Michael Rockingham

Jen Stewart

Deployed Product

Front End Deployed Site

Related Repos

Back End Repo

Data Science Repo

Getting Started

All Labs Engineering Standards must be followed.

Test Coverage

  • To check test coverage run 'npm run coverage'
  • Current coverage 55%

Environment variables:

  • A sample .env file named .env.sample is provided:
REACT_APP_CLIENT_ID=""
REACT_APP_OKTA_ISSUER_URI=""
REACT_APP_BACKENDURL="http://localhost:8000"
REACT_APP_MAPBOX_TOKEN=""

Notable Libraries Used

User Flows

  • User can see clusters of incidents on a map that breaks apart as they scroll in so that they can see more specifically where each incident in the cluster occurred.
  • User is able to click on a data point within the map and view more details including date, description, tags, and sources.
  • User can view charts by state or by use of force tags to see where incidents are more prevalent and what type of force is most commonly used.
  • User can view incident data and browse through them using pagination
  • User can view trends in data with data visualizations in the form of graphs
  • User can download the publicly available data in CSV or JSON format

Project File Hierarchy

Where to find important files in this project:

๐Ÿ“‚ src

  • index.js <- project entry

  • index.css

  • App.js

  • ๐Ÿ“‚ components

    • ๐Ÿ“‚ about

    • ๐Ÿ“‚ AdminDashboard

      • ๐Ÿ“‚ AntTable
    • ๐Ÿ“‚ Footer

    • ๐Ÿ“‚ graphs <- this has multiple sets of assets for the graphs

    • ๐Ÿ“‚ Home

      • ๐Ÿ“‚ Map
    • ๐Ÿ“‚ incidents

    • ๐Ÿ“‚ Login

    • ๐Ÿ“‚ NavBar

    • ๐Ÿ“‚ Stats <- stats carousel for home page

    • ๐Ÿ“‚ timeline <- timeline component for home page

    • OktaWrapper.js <- wraps Okta's Security component for use with React Router's useHistory hook

  • ๐Ÿ“‚ hooks

    • useFetchIncidents.js

    • useMapSearch.js <- date and geographic filtering helpers

  • ๐Ÿ“‚ store

    • index.js <- Redux store

    • *Slice.js <- Redux Toolkit slices

  • ๐Ÿ“‚ utils

    • oktaConfig.js

    • test-utils.js <- Jest/React Testing Library setup

  • ๐Ÿ“‚ assets

    • ๐Ÿ“‚ BloomTechAssets <- BloomTech Logos
  • ๐Ÿ“‚ styles

Architecture

  • DS backend scrapes and shapes data
  • Web BE gets data from DS backend through a cron job and updates Web Database
  • Web FE can use endpoints to fetch an incident by or all incidents (currently we are only fetching all incidents at once)

End Points

human-rights-first-police-fe-a's People

Contributors

aleksandr-ardanov avatar alvin-joseph avatar austin-carman avatar brandonx1123 avatar brettmcadams avatar christopher-barrett avatar devin-mitchell avatar ethan-edmond avatar jeanluciano avatar jlong5795 avatar john-chamberlin avatar jstewart8053 avatar kcjerrell avatar krsnyder avatar leon-nasswetter avatar lindsay-deaton avatar mcolsen avatar mhuckstepp avatar michael-maton avatar mrockingham avatar nickcabuno avatar paulstgermain avatar robert-petersen avatar starullo avatar stephanieenciso avatar stevenpmcfarlane avatar victoriamount avatar willwearing avatar xpeedy avatar yourpersonaltechguy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.