Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

mukhindev/react-isometric-github-calendar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-isometric-github-calendar

Isometric Github Calendar

Demo

https://mukhindev.github.io/react-isometric-github-calendar/

What's it?

Isometric Github Calendar with SVG and React.

Нow to try?

  • Rename file .env.example to .env. Add your login and token* from GitHub.
  • Run npm start for developer mode.
⚠️ Attention! Use only the public GihHub token. Better yet, move the api request to the proxy server.

Best way

  • Create a proxy server that will return data from the GitHub Api.

    GraphQL query:

    query {
      user(login: "login") {
        contributionsCollection {
          contributionCalendar {
            totalContributions
            months {
              name
              totalWeeks
              year
              firstDay
            }
            weeks {
              contributionDays {
                color
                contributionCount
                date
                weekday
              }
              firstDay
            }
          }
        }
      }
    }
  • Add REACT_APP_PROXY_GITHUB_CALENDAR variable to .env. Assign url to proxy.

  • Remove other variables

© Sergey Mukhin 2021 @mukhindev