This was designed to run on Google Cloud Functions. You should familiarize yourself with that environment before continuing, as you'll need to use the Local Emulator to run things locally.
yarn install
functions kill
functions start
functions deploy district --trigger-http
curl -s "http://localhost:8010/paidfor/us-central1/district?address=1637+Stuart+St+Berkeley+CA+94703"
curl -s "http://localhost:8010/paidfor/us-central1/district?lng=-122.27536&lat=37.8501"
- This currently depends on the US Census Bureau's Geocoder API.
- Right now, this only works to find voting districts in Berkeley, CA.