IndivisibleSomerville / its-our-call

2 stars 1 forks source link

Host topographical JSON data for d3 maps #68

Open andrewtremblay opened 6 years ago

andrewtremblay commented 6 years ago

Currently the topoJSON for the map component is being hosted at https://github.com/andrewtremblay/andrewtremblay.github.com/tree/master/json/_temp/topoJSON.

A more permanent place is needed for long term stability, it might be time to begin hosting the python server somewhere.

Requirements

Determine the best way to host the files long term (AWS or some IS-official CDN).

Begin implementing that hosting strategy, finalizing with moving the urls in the react frontend to point to it. https://github.com/IndivisibleSomerville/its-our-call/blob/57c2cca047edca2ad6faef09be247385f663b045/frontend/its-our-call/src/components/MapD3.tsx#L11

Notes

The plan will eventually be to adapt to the district maps changing over time (not all districts are changed, but a few are subtly changed every so often). We can automate this process (not needed for MVP)

We will need to document how we download and adjust these topoJSON files from the census.gov site. (That can be another task)