Code Monkey home page Code Monkey logo

vaccine-tracker's Introduction

COVID-19 Vaccine Tracker

What the site currently looks like: picture of website

Website demo: http://diegolopez.me/vaccine-tracker/

Instructions to Run Locally

You need to modify some things in the docs\script.js file first, since this repository is set up so that the backend is hosted on a Google VM. If you are using a Unix system (Linux or Mac), type the following: export PORT=8080 and if you are using a Windows operating system, type the following: set PORT=8080.

In docs\script.js, uncomment line 11: plot.src = 'http://0.0.0.0:8080/data.png?t=' + Date.now(); and comment out line 12: plot.src = 'http://117.9.121.34.bc.googleusercontent.com/data.png?t=' + Date.now();. Also, uncomment line 20: let result = await fetch("http://0.0.0.0:8080") and comment out line 19: let result = await fetch("http://117.9.121.34.bc.googleusercontent.com/");.

Now, do the following:

  1. In the command line, run main.py.
  2. In your web browser, go to http://localhost:8080/
  3. Open index.html in your web browser.

Instructions to run on a Google VM

Whenever you change main.py, you need to re-build the Docker file. These are the steps to do so:

  1. sudo docker build --tag webdev/vaccine-tracker .

You will see the following output near the end: Successfully built <container id>, where <container-id> is the ID of the container. You will then want to use nohup to run this process in the background with the following command:

  1. nohup sudo docker run -p 80:56666 <container id> > output.txt&

You can view the output in output.txt.

vaccine-tracker's People

Contributors

shereenelaidi avatar symmetries avatar tiffanyyong avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

symmetries

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.