Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Sparrow0hawk/mynearestleedsmarginal
R Shiny web app getting volunteers to marginal seats
https://github.com/Sparrow0hawk/mynearestleedsmarginal
docker-container google-cloud labour labour-party leaflet mobilisation shiny
Last synced: about 2 months ago
JSON representation
R Shiny web app getting volunteers to marginal seats
- Host: GitHub
- URL: https://github.com/Sparrow0hawk/mynearestleedsmarginal
- Owner: Sparrow0hawk
- License: mit
- Archived: true
- Created: 2019-06-26T19:33:18.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-09-03T18:33:29.000Z (over 1 year ago)
- Last Synced: 2024-08-13T07:13:31.821Z (6 months ago)
- Topics: docker-container, google-cloud, labour, labour-party, leaflet, mobilisation, shiny
- Language: R
- Homepage: http://www.mynearestleedsmarginal.com
- Size: 75.8 MB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - Sparrow0hawk/mynearestleedsmarginal - R Shiny web app getting volunteers to marginal seats (R)
README
# mynearestleedsmarginal Shiny app
This is the [mynearestleedsmarginal app](https://mynearestleedsmarginal.com).
Inspired by Momentum's 2017 [mynearestmarginal.com](https://mynearestmarginal.com/), this project is an R Shiny applications that identifies your nearest marginal council ward in Leeds local authority.
## Docker container
If you have [Docker](https://www.docker.com/) installed this app can be built into a Docker container using the command:
```bash
cd mynearestleedsmarginal2019/docker build . -f dockerfiles/Dockerfile -t mynearestleedsmarg:latest
```You can run the container with the command:
```bash
docker run --rm -p 3838:3838 mynearestleedsmarg:latest
```With the container running you can navigate to `http://localhost:3838` in a web browser to view/interact with the app.
### Deploying to Google Cloud Run
You can deploy this app to Google Cloud with a properly configured [gcloud SDK](https://cloud.google.com/sdk/docs/install) using the following commands:
```bash
# submit the docker container to your private google cloud container registry
gcloud builds submit --tag gcr.io/$(gcloud config get-value project)/mynearestleedsmarg --timeout=60m# deploy the container image to google cloud run
gcloud run deploy --image gcr.io/leeds-app-2-serverless/mynearestleedsmarg --platform managed --port=3838
```