Giter Site home page Giter Site logo

gourab2927 / covid_19_mapper Goto Github PK

View Code? Open in Web Editor NEW

This project forked from davidpaps/covid_19_mapper

0.0 0.0 0.0 4.67 MB

A Real-Time Visual Covid-19 Mapper of the World - Built with React

Home Page: https://covid-mapper.herokuapp.com/

HTML 2.16% CSS 5.06% JavaScript 92.78%

covid_19_mapper's Introduction

Covid-19 Mapper

A global Covid-19 mapper, made on a single page React App. This used several API calls for the Covid-19 data, and a Google Map API displaying the countries data geographically. Jest was used for testing, Heroku for deployment and Travis for Continuous Integeration.

This was the first large Post-Makers project, and was made with a brand new piece of tech for us. Asia, Nic and I decided to use the React JavaScript library to display the current world data of COVID-19 pandemic. This was for 2 main reasons. Firstly, the best way to learn was by 'doing'. The second was that this was a topic that was affecting us and the world at the time of production. We were quarantined, had a drastic change of pace since graduating, and thought we would try to shed further light on the pandemic situation for the public.


'Stage 1', our MVP, was to have an interactive map that a user can click on to display the current statistics for that country. This took a week to achieve (the original repo can be found here showing how we got to that point). A user could click on the marker, which would then display the current info in an infowindow.


'Stage 2', we decided to represent the mortality and infection rates by replacing the markers on the map with circles. These circles would then change in size and colour depending on the data coming in from the Covid API - when clicked on, the data was then changed from being displayed in an infowindow, to being displayed on the bottom of the screen in it's own section that would render independantly.


'Stage 3', we decided to add a separate page that would show an interactive table with the numbers relating to various parameters (Total Cases, Total Deaths, Total Recoveries, CFR, Active Cases, Critical Cases and Cases per 1 Million people). A new table is rendered on click of the 'Covid-19' button, which replaces the map. This can then be filtered through via a real time search bar, or each header of a column can be clicked on to adjust the column to read in an ascending or descending order of respective values.


How to Run

Clone this repo, navigate to the test-app directory and in the command line type:

npm install

Once the dependencies are installed, type in the command line:

npm start

This will start the local server which can be accessed at localhost:3000

The project is also hosted live on Heroku, visit via Google Chrome.


How to Run Tests

Jest and Enzyme were used for testing. To run, in the command line type:

npm test

This will display all of tests and snapshot tests.


Stage 1


Stage 2


Stage 3

Map View

Table View

---

covid_19_mapper's People

Contributors

asiaellis5 avatar davidpaps avatar nicolasraffray avatar

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.