Skip to content

stanleyta/githubtopcontributors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

githubtopcontributors

alt tag

githubtopcontributors is a site built in node.js which utilizes the githubtopcontributors_module to query the GitHub API to retrieve the "top 10" contributors. The site provides an interface where the results are displayed using ngGrid / angularUI.

This project was intended purely as a learning exercise, but is kept on github as a learning tool for anyone interested.

Installation

This project is available on GitHub, and also avilable as an NPM package.

To start, download the source from GitHub. Navigate to the project folder and run npm install to install the project's dependencies.

Alternatively, you can install via NPM using the command $ npm install githubtopcontributors_module. Navigate to the project folder.

Usage

Run the following command to start the server:

node server.js

or

npm start

Then, navigate to http://localhost:3001/.

You'll need to login with your github credentials via oauth before accessing the API and main access page.

Once you're authenticated, to access the top 10 contributors to a repository, enter the path of the repository e.g. /repos/stanleyta/githubtopcontributors/contributors, click 'Go', and voila. The ngGrid will populate with the top 10 contributors sorted by rank.

Once the table has been loaded, you can sort the table however you wish.

Running Tests

Install mocha globally with the following command:

npm install -g mocha

Then simply run the tests by running:

npm test

License

Licensed under MIT.

About

node.js site that queries the GitHub API and displays the "top 10" contributors

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •