Skip to content

Latest commit

 

History

History
83 lines (44 loc) · 2.16 KB

Readme.md

File metadata and controls

83 lines (44 loc) · 2.16 KB

Github Statistics

Exploring Github API V4 using GraphQL and making Statistics on github data.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development purposes.

Prerequisites

Be sure to have Maven installed

Installing

Clone the repository

git clone https://github.com/MoussaaK/Github-Statistics

And run jetty


cd your-clone-directory

mvn jetty:run

And go to the index : http://localhost:8080/ or http://localhost:8080/index.html to see the statistics

Built With

  • GaphQL - A query language for your API
  • Maven - Dependency Management
  • JSON - Used for mapping and forming http posts headers
  • Jetty - Jetty Server version : jetty-9.4.6.v20170531

Versioning

We use git for versioning.

Authors

  • KONATE Moussa - Initial work - MoussaaK

  • SOKOBA Aboubacar - Initial work - ACSokoba

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

Hat tip to Shards Dashboard Team https://github.com/DesignRevision/shards-dashboard

Quering the local graphql server

http://localhost:8080/graphql?query={someCompaniesData{companyName,numberOfMembers,numberOfRepositories,avarageCommitCount,totalRepositoriesDiskUsage}}

http://localhost:8080/graphql?query={allUsers{login,name,repositories{totalCount}}}

http://localhost:8080/graphql?query={allLinks{url,description}}

http://localhost:8080/graphql?query={someRepositories{name,primaryLanguage}}

http://localhost:8080/graphql?query={allClosedIssueCount}

http://localhost:8080/graphql?query={allOpenIssueCount}

http://localhost:8080/graphql?query={allUsersCount}

http://localhost:8080/graphql?query={allRepositoryCount}

http://localhost:8080/graphql?query={someLanguages{name,languageFrequency}}

http://localhost:8080/graphql?query={allRepoPerYear{name,languageFrequency}}

For more

go to https://www.howtographql.com/