GithubHelp home page GithubHelp logo

mozaycs / coronaviruseurope.org Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 3.64 MB

coronaviruseurope.org

License: MIT License

JavaScript 66.85% HTML 11.38% CSS 5.91% Python 15.87%
gatsby coronavirus covid-19 covid19-data reactjs charts gatsby-github-stats stats covid-2019

coronaviruseurope.org's Introduction

Gatsby GitHub Stats

Screenshot

A website that tracks the last two weeks of statistics about the gatsbyjs/gatsby repo.

This is an unnofficial project and not maintained by the Gatsby Core Team.

Site

The site is a Gatsby site at it's core. It uses a JSON file generated by a GitHub Action as the data source and then passes said data into a variety of charts using the Recharts chart library.

The inner workings of the site is powered by gatsby-theme-github-stats.

To work with the site locally in a development mode:

  1. Clone down the repo: git clone https://github.com/lannonbr/gatsby-github-stats/
  2. Install the dependencies: yarn install
  3. Run Gatsby in development mode: yarn develop

Actions

There are two actions that continually update the site. They are both found in the .github/actions/ directory of this repository.

Github Poller

First off is an action that queries the GitHub V4 GraphQL API for various stats like the number of open / closed issues, PRs, etc. and then sends the stats to a NoSQL database on Google's Firebase platform.

Stats Loader

The other action then queries the Firebase database to grab the last 336 entries which equates to the last 2 weeks of data. It then prints it out to a data.json file in the src/data/ directory and then commits it to the repository. This triggers a deploy to Netlify for the site to be rebuilt.

twitter feeds

https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/post-statuses-update

coronaviruseurope.org's People

Contributors

darshankumar89 avatar kprocks86 avatar

Watchers

James Cloos avatar  avatar Niral Bhalodia 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.