Package Exports
- githubtopcontributors
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (githubtopcontributors) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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.jsor
npm startThen, 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 mochaThen simply run the tests by running:
npm testLicense
Licensed under MIT.