Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/afrith/election-map-frontend
Interactive map of South African election results visualised in various ways
https://github.com/afrith/election-map-frontend
Last synced: 3 months ago
JSON representation
Interactive map of South African election results visualised in various ways
- Host: GitHub
- URL: https://github.com/afrith/election-map-frontend
- Owner: afrith
- License: mit
- Created: 2019-05-31T09:38:49.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-06-14T08:11:17.000Z (8 months ago)
- Last Synced: 2024-06-14T21:08:34.625Z (8 months ago)
- Language: JavaScript
- Homepage: https://elections.adrianfrith.com/
- Size: 3.19 MB
- Stars: 11
- Watchers: 3
- Forks: 3
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
This is the frontend code for the election map which is deployed at https://elections.adrianfrith.com/. The repository for the backend is at https://github.com/afrith/election-map-backend.
## Tech stack
* [React](https://reactjs.org/)
* [create-react-app](https://facebook.github.io/create-react-app/)
* [react-md](http://react-md.mlaursen.com/)
* [Mapbox GL JS](https://docs.mapbox.com/mapbox-gl-js/)
* [react-mapbox-gl](http://alex3165.github.io/react-mapbox-gl/)## Deploying
You need to deploy an instance of [the backend service](https://github.com/afrith/election-map-backend). Set the variable `REACT_APP_API_ROOT` to the root URL of this service in `.env.development` or `.env.production` as appropriate. To run in development with live code reloading, run `yarn start`. To build a minified production version run `yarn build`.