- IntelliJ Idea Community Edition (Download)
- Java SDK (JDK)
- If JDK is missing, don't worry, IntelliJ will assist you installing JDK from the IDE. See troubleshooting.
Clone repo with your favorite tool, or with CLI using following command
git clone https://github.com/hossain-khan/github-stats.git
Open the checked out directory in IntelliJ IDEA
ℹ️ Instead of using IntelliJ, you can use Gradle command after configuring
local.properties
./gradlew run
Once project is synced using gradle, you should see the project load like following
Rename the provided local_sample.properties
to local.properties
.
Generate token and update other configurations as appropriate
Once configuration is in place, all you need to do is open the Main.kt
and
You can also use following gradle command to run the stats generator
./gradlew run
See troubleshooting section if you encounter issue.
Once the generator app finishes running, you will see report in the project root directory that contains both ASCII
and CSV
report.
Here is sample snapshot of reports from different repositories:
If you see following error, it could be your token is not setup, or you have exceeded API rate limit.
Exception in thread "main" retrofit2.HttpException: HTTP 401
Open BuildConfig and enable DEBUG_HTTP_REQUESTS
to true
to see API request header information to confirm error details.
Missing
Finally, click on the gradle sync button (🐘🔁) and wait for the sync to complete. If everything went well you should see the main()
in the Main.kt
file.