Setup

  1. npm i (install client dependencies)
  2. cd server
  3. npm i (install server dependencies)

Development

  1. npm run dev (start client dev server)
  2. cd server
  3. npm start (start node server if you need API interaction)

Running a build with the node server

  1. npm run build
  2. cd server
  3. npm start
  4. Go to http://localhost:3000

Sources

Zipcode to congressional district (ZIP-CD): https://www.huduser.gov/portal/datasets/usps_crosswalk.html

Reps: https://github.com/unitedstates/congress-legislators

  • delete middle_name, suffix, nickname, senate_class_id, fec_ids, rss, washington_post
  • remove all commas (mostly around suffixes)
  • upload to postico