githubtopcontributors

0.1.1 • Public • Published

githubtopcontributors


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.

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.

Package Sidebar

Install

npm i githubtopcontributors

Weekly Downloads

5

Version

0.1.1

License

MIT

Last publish

Collaborators

  • stanleyta