项目作者: Sparrow0hawk

项目描述 :
R Shiny web app getting volunteers to marginal seats
高级语言: R
项目地址: git://github.com/Sparrow0hawk/mynearestleedsmarginal.git
创建时间: 2019-06-26T19:33:18Z
项目社区:https://github.com/Sparrow0hawk/mynearestleedsmarginal

开源协议:MIT License

下载


mynearestleedsmarginal Shiny app

This is the mynearestleedsmarginal app.

Inspired by Momentum’s 2017 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 installed this app can be built into a Docker container using the command:

  1. cd mynearestleedsmarginal2019/
  2. docker build . -f dockerfiles/Dockerfile -t mynearestleedsmarg:latest

You can run the container with the command:

  1. 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 using the following commands:

  1. # submit the docker container to your private google cloud container registry
  2. gcloud builds submit --tag gcr.io/$(gcloud config get-value project)/mynearestleedsmarg --timeout=60m
  3. # deploy the container image to google cloud run
  4. gcloud run deploy --image gcr.io/leeds-app-2-serverless/mynearestleedsmarg --platform managed --port=3838