Code Monkey home page Code Monkey logo

us-covid-stats's Introduction

us-covid-stats

Web dashboard app that presents COVID-19 infection and death counts by U.S. county, search interface via ZipCode. Written in Python using Flask, javascript, bootstrap CSS.

Uses the Mulesoft COVID-19 APIs. Note there are some known problems with this API at time of writing. For instance, it returns no data for zipcodes in NYC (e.g. 10001, 10005).

Population data gathered from the U.S. Census Bureau Population Estimate API.

Building, Deploying & Running

This is a straightfoward Python Flask application which can be run in several ways including locally via python, as a Docker container, or in Google Cloud Run.

via Python

From the root dir of the app:

$ python app.py

The app will be available on localhost port 8080 (e.g., http://0.0.0.0:8080)

via Dockerfile

From the root dir of the app:

$ docker build -t uscovidstats . && docker run --rm -p 8080:8080 -e PORT=8080 uscovidstats

The app will be available on localhost port 8080 (e.g., http://0.0.0.0:8080)

via Google Cloud Run (via Cloud Build)

Run on Google Cloud

- OR -

From the root dir of the app:

$ gcloud builds submit . --config=cloudbuild.yaml

The build results will provide a unique URL for the app.

Testing geolocation in dev

Geolocation is done by IP address (using ip-api.com). When testing locally, your external IP may not be reported to the app, so set the DEV_EXT_IP to your external IP address in your dev environment or in the Dockerfile.

Contributing

This is my first github project so feel free to submit recommendations via PR, or shoot me a message. This project is not affiliated or sponsored by Alphabet or Google.

us-covid-stats's People

Contributors

vszal avatar

Watchers

 avatar

Forkers

davidstanke

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.