Skip to content

produdez/us-geo-covid

Repository files navigation

Geo-covid (Frontend)

Icon

Description:

Geo-covid: A data dash board for the Covid 19 situation in the USA

This repo is the front-end for my geo-covid project (a data dashboard embedded as a web application).

Back-end repository can be found here

Demo

As of current (time of this commit), demo is online at Link

DocPage

please excuse the slow initial loading time, it's a free hosted backend and database

Features

The dashboard aims to

  1. Daily full map view of one country’s COVID 19 situation divided by its regions
  2. Let user view historical date through altering a time slider to change date
  3. Basic statistics of the whole country including:
    1. Top raking regions on covid infection
    2. Line chart of total infections
    3. Today's covid distribution between visualized by bar chart
  4. Hovering on a region will show its basic info, clicking on it will show a timeline of Covid in the region

Technologies Used

  • Angular
  • TypeScript
  • Leaflet (map rendering)
  • D3.js (graphing)
  • Tailwind + SASS (styling)
  • Eslint (linting)

Screenshot

Dakota state Covid timeline Covid distribution (30/05/2020)
image image
All time covid timeline Top chart covid infection (10/03/2020)
image image

Setup

Requirements and Installations:

  1. Install packages

        npm install
    
  2. Setup environment

         cp .env.dist .env
    

Usage

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory.

Development server

  • Run ng serve for a dev server.
  • Navigate to http://localhost:4200/.
  • The application will automatically reload if you change any of the source files.

Project Structure

  • /data: raw csv data
  • /scripts: script to load data to database: include a .py version and a notebook.ipynb version to show step by step execution
  • /us_covid_api main project files, inside includes these main files:
    1. models.py: Object relational mapping of database items/table
    2. serializers.py: Turn Object to JSON object
    3. views.py: Request/Endpoint
    4. urls.py: Set endpoint URL

Contact

Created by @produdez - feel free to contact me or follow my blog on medium ❤️!

alt text alt text alt text

This project was generated with Angular CLI version 14.0.6.

About

Data Dashboard For Covid-19 Pandemic in US

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published