A tracker that shows the sponsors of a bill and the current status of a bill in the New York State Legislature (Assembly and Senate) and the New York City Council.
Compare to the existing spreadsheet.
- Install Docker Desktop
- Ask for access to the Airtable
- Get the required API keys:
Your .env
file will look like this:
# REQUIRED - bill data
# Sign up for key here: https://legislation.nysenate.gov/public
OPEN_LEGISLATION_KEY=myopenlegislationapikey
# REQUIRED - sunrise bill campaigns
# Ask in the group chat for this
AIRTABLE_API_KEY=my.airtable.api.key
# OPTIONAL - needed for `legislators/search/offices`
# How to get key: https://docs.openstates.org/api-v3/#api-basics
OPEN_STATES_KEY=my-openstates-key
# OPTIONAL - needed for mapbox geocoding
# How to get key: https://docs.mapbox.com/help/getting-started/access-tokens/
MAPBOX_KEY=my-mapbox-key
- Clone this repo locally
- Create a new file at the root of this project called
.env
- In the
.env
file, add the required API keys (see below). - At the root of this project, in your Terminal or Powershell, run
docker compose build && docker compose up
- Visit http://localhost:5173/
Install prettier to format your code. You can use this in your workspace settings JSON:
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
},
If you install eslint, you will see errors highlighted in VSCode.