A challenge entry for CenturyLink, written in Golang.
- Golang >1.8
There are no additional packages used, only what comes with Golang.
Please clone the project to:
$GOPATH/src/github.com/grimthereaper/gitgazer
Or if you are a Windows user:
%GOPATH%/src/github.com/grimthereaper/gitgazer
Make sure to have a github oAuth token, or a github personal token, as rate limiting cripples this application, as github limits non tokenized request to 60 per hour.
You can do that by following this guide!
Please navigate to the cmd
folder to run this application. For organizational
purposes, main.go
was put there.
Command Structure:
Command | Type | Default | Description |
---|---|---|---|
buffer | bool | true |
Whether or not to buffer results from github |
host | string | empty | What host to bind the application to |
port | int | 8080 |
What port to bind the application to |
token | string | empty | What github personal access token to use (RECOMMENDED) |
To use any of the arguments, they are added by hyphen and the command name, such as...
go run main.go -token=ExampleToken
Route | Method | Description |
---|---|---|
/api/v0/github/user/{username}/repositories |
GET |
Gets the repositories |
/api/v0/github/user/{username}/followers |
GET |
Gets the followers |
FOR A LIVE VERSION, CONTACT ME BY EMAIL