groundgamela / mutual-aid-networks

Find Mutual Aid Networks and other community self-support projects near you.
https://www.mutualaidhub.org
2 stars 10 forks source link

Implementing issue #49 #52

Open jostrow opened 4 years ago

jostrow commented 4 years ago

Initial commit for issue #49

DISCLAIMERS: a) ./public/dataset/index.htm was not written in the React framework - it's just a standalone HTML file. b) ./scripts/ directory was created, meant to house utilities/scripts that we use related to the website. This directory should not be public-facing. If you think those scripts belong somewhere else, that's fine, just let me know.

meganrm commented 4 years ago

If you're feeling ambitious: The data is being read into memory on the front end, so to make this really useful, and have the download match the data online, it would be good to have it created on load. Here is a library for including a CSV download from a dataset on the front end. https://github.com/react-csv/react-csv. It could be included here: https://github.com/townhallproject/mutual-aid-networks/blob/master/src/components/NetworksTable/index.jsx#L123. Here is the schema for the database (although I need to add category and id to it. https://github.com/townhallproject/mutual-aid-networks/blob/master/src/components/NetworksTable/index.jsx#L123.