Skip to content

A web application to gather statistics about the Covid-19 Pandemic, and display them in easy to read graphics

License

Notifications You must be signed in to change notification settings

aahmad4/Coronatracker

Repository files navigation

Coronatracker

A coronavirus tracking website, made with a back-end of Node.js / Python and a front-end of HTML / CSS, which tracks international data on the COVID-19 pandemic and displays it in easy to read graphics. This website was created as a collaboration with Shiva (GH: shivaganapathy) and Sam (GH: ayunami2000)

A link to an online demo version can be found here: coronatracker-44862a893709.herokuapp.com

How To Use

To use our Coronavirus tracker, simply use our drop drown to select a country, and view statistics regarding the disease in that country. We have another feature that allows the end-user to compare the amount of people with the disease in 2 countries.

Screenshots of Website

Repository Contents

  • server.js: This contains our first back-end programming file which was written in Node.js. This file contains the web server and assets to run the python aspect and return the images of data to the end-user.
  • server.py: This is our second back-end programming language. This file contains the logic for the server to communicate with the JavaScript and HTML. Also, this is where we have the logic written for using the Covid19 API to make our own graphs with matplotlib and distrubute them to the end-user.
  • index.html and style.css in the public folder both contain the front-end of the website and that's where the user interface and overall design of the website was developed.
  • The old branch contains the previously held code for the website using Rapid API. After this API went down, I transferred the code to the Covid19API and fixed a lot of the server side code. Now this new code resides in the master branch.

Built With

Setup

Clone

git clone https://github.com/aahmad4/Coronatracker

Implementation

In server.js change the python3 command based on your python 3 installation.

var execProcess = exec(
        'python3 server.py "' +
          req.url
            .substr(3)
            .toLowerCase()
            .replace(/%20/g, " ")
            .replace(/\"/g, "") +
          '"'
      );

Usage

cd Coronatracker
node server.js

Then go to

localhost:8080

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

About

A web application to gather statistics about the Covid-19 Pandemic, and display them in easy to read graphics

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published