Heatmap of Github Commit Day / Hour using Github GraphQL API and D3.js.
You will need to create a Github Personal Access Token to acess the GraphQL API provided by Github.
In order to protect the token, I have wrapped the API using PHP, so the token will not be directly exposed in client side. The source code can be found in /api/
. To add your token, got to /api/githubGraphQL.php
and replace the following line:
$this->scrap_headers = array("Authorization: Bearer <PERSONAL_ACCESS_TOKEN>");
- Node >= 10
.env
>VUE_APP_API_DOMAIN
.env
>VUE_APP_DOMAIN
.env
>VUE_APP_CONTEXT
Go to /frontend
folder and run the following command:
npm install
npm run dev
Go to /frontend
folder and run the following command:
npm run build