-
Notifications
You must be signed in to change notification settings - Fork 1
Quick Start
This page serves as a guide for setting up and using HubListener.
To get the latest version of HubListener, download or clone the repository at https://github.com/pjmc-oliveira/HubListener
Download and install Node.js
Either the latest LTS version or the current version would be appropriate.
Download and install the latest stable release of Python 3
The Python installer will also install pip, ensure this option remains selected. Windows users should select the 'add python to PATH' option.
Python 3 should be accessible on the terminal as python3 for OSX users and python for Windows users.
pip for python 3 should be accessible on the terminal as pip.
OSX users should have SQLite3 already installed on their machines.
Windows users should download the 32-bit precompiled binaries and tools to the C:\Windows\System32 directory.
To use HubListener, you must have a valid GitHub personal access token. To create one, follow the instructions below:
- Log into GitHub and visit the Personal Access Tokens page
- Click "Generate new token"
- Use any token description that is meaningful to you (such as HubListener)
- Select the
public_reposcope - Click "generate token"
- Copy the token string to a file and save it as
auth_token.txtto the HubListenersrcdirectory.
This file can now be used by HubListener to connect to open GitHub repositories and pull GitHub metrics.
- Ensure
auth_token.txtis present in the HubListenersrcdirectory - In your terminal of choice, move to the HubListener
srcdirectory - Run
npm installto fetch all npm dependencies - Run
pip install -r requirements.txtto fetch all python dependencies - HubListener can be run over the CLI, or launched as a web application.
- To run HubListener on the CLI, run
node app.js --url <REPO URL> --out <filename>from the HubListenersrcdirectory and follow the usage instructions. - To run HubListener as a web application, run
npm startfrom the HubListenersrcdirectory and access the application throughhttp://localhost:8080in your web browser.
- To run HubListener on the CLI, run