$ git clone https://github.com/rodrigogs/github-metrics.git
$ cd github-metrics && npm install
Configure your environment variables according to the .env.sample file
.env.sample
Go to your GitHub developer settings at https://github.com/settings/installations
Create a new app to authenticate the backend api requests and set github-metrics variables according to it:
Create another app to authenticate clients and set github-metrics variables according to it:
Start ngrok
$ ./ngrok http 3000 # 3000 is relative to the PORT variable
Copy the generated ngrok url
Create or edit a webhook that will send data to your application with the copied ngrok url
Set your app variable APP_URL as the generated ngrok url
Start the app
$ npm start
There was an error while loading. Please reload this page.