JSPM

githubtopcontributors

0.1.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6
  • Score
    100M100P100Q28695F
  • License MIT

node.js site to query the GitHub API using the githubtopcontributors_module module and display the "top 10" contributors

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.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.