Quickly overview and manage GitHub repositories
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
vendor
.gitignore
Gopkg.lock
Gopkg.toml
README.md
copy_response.go
handle_feeds.go
handle_repos.go
main.go
queries.go

README.md

repocmd

To learn how Go, Vue, and Electron can play together, see: RepoCMD - An Adventure into Electron.

This is a standalone Go server containing all business logic used by repocmd-desktop, an Electron app.

To install:

$ go get github.com/ef2k/repocmd

Running the server:

$ PORT=3000 GITHUB_TOKEN=<TOKEN> go run main.go

Expected env variables:

#.env
GITHUB_TOKEN=<YOUR_TOKEN_HERE>
PORT=3000

If using codegangsta/gin, it'll load your .env variables automatically.

Vendored Dependencies:

+ github.com/shurcooL/githubql  - Used to request Github's GraphQL API
+ github.com/patrickmn/go-cache - Used to cache GitHub API calls
+ github.com/mmcdole/gofeed     - Parse Atom feeds

Endpoints:

[GET]    /repos  - A list of repositories

[PATCH]  /repos - Patch a repository (only archiving is supported)

                  Expected JSON Body:

                      {
                        nameWithOwner: "ef2k/repocmd",
                        isArchived: <true or false>
                      }