8000 GitHub - Matt2Harrington/corona: storing coronavirus data for collective use
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Matt2Harrington/corona

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FVCproductions

COVID-19

Covid-19 (Coronavirus Data)

Using NovelCOVID API

Taking data and inserting into Postgres Database for future use.

Prerequisites

  • Download and install Postgres
  • Use data application (such as DataGrip) to connect to Postgres locally
  • Create a config.yaml as follows and fill in values:
    host: <host>
    username: <username>
    port: <port>
    databaseName: <name>
  • Run provided scripts to create tables
  • Run insertion scripts to load existing data

Running

  • Have Postgres running locally
  • Navigate to directory of repo and run go run corona.go to pull new data
  • (Data usually gets updated 25-30 minutes on API call)
  • Set up the CoronaAPI

Storage

  • Location data is stored in the info table
  • data_id links to the id in the data table for specific data records

Cleanup

  • As of v0.9, cleanup is performed within the API itself so manual cleanup is at own discretion
  • In case there is duplicate data, simply run the table_cleanup.sql file against the database
  • Based on time_ran column, which is automated on insert inside of go

Portal

  • Portal is a work in progress, but after running the CoronaAPI, simply use a local server (such as in atom) to view the basic line graph

About

storing coronavirus data for collective use

Resources

Stars

Watchers

Forks

Packages

No packages published
0