Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ProgressiveMass/legislator-scorecard
🗳️ Explore MA state representatives' voting records
https://github.com/ProgressiveMass/legislator-scorecard
gatsbyjs government-data legislation
Last synced: 18 days ago
JSON representation
🗳️ Explore MA state representatives' voting records
- Host: GitHub
- URL: https://github.com/ProgressiveMass/legislator-scorecard
- Owner: ProgressiveMass
- Created: 2017-03-27T04:56:24.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2024-06-22T16:07:03.000Z (5 months ago)
- Last Synced: 2024-10-18T13:27:05.396Z (26 days ago)
- Topics: gatsbyjs, government-data, legislation
- Language: JavaScript
- Homepage: https://scorecard.progressivemass.com/
- Size: 22.8 MB
- Stars: 20
- Watchers: 7
- Forks: 8
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![.github/workflows/deploy.yml](https://github.com/ProgressiveMass/legislator-scorecard/workflows/.github/workflows/deploy.yml/badge.svg?branch=master)
# Progressive Massachusetts Legislator Scorecard
Taking somewhat dry legislator information from various spreadsheets administered by [Progressive Massachusetts](https://www.progressivemass.com/) and turning it into a ...slightly less dry interactive app.
[**Check out the scorecard app here**](http://scorecard.progressivemass.com)
## Technical details
The gatsbyjs statically-generated site [uses Google Sheets as a lightweight CMS](https://docs.google.com/spreadsheets/d/17SfLTsqLaoBG8WE5vKHmBY_J6Iz1IFKThm_wAqsHZdg) and also sources additional legislator data from the [Open States API](https://docs.openstates.org/en/latest/api/v2/).
Hosted on Google Firebase, with a Firebase serverless function for fetching geolocation data, and automated deployments using Github actions.
Site created by [@aholachek](https://github.com/aholachek) and currently administered by [@dscush](https://github.com/dscush).
![screenshot of the scorecard](./screenshot.png)
## Contributing
You can build the site locally by simply running `yarn start` after cloning the repo. To build the data, you'll need to copy `.env.template` to `.env` and then add your own Google API key (it must be Google Sheets enabled) and an Open States API key. You should then be able to run the `yarn build-data` command to fetch legislator data.