GithubHelp home page GithubHelp logo

techsd / all-your-github-are-belong-to-us Goto Github PK

View Code? Open in Web Editor NEW

This project forked from parkr/all-your-github-are-belong-to-us

0.0 1.0 0.0 152 KB

:octocat: Save all your GitHub data to one place, private & public. A Webhook.

Home Page: https://www.npmjs.org/package/all-your-github-are-belong-to-us

JavaScript 94.11% Shell 5.89%

all-your-github-are-belong-to-us's Introduction

all your github are belong to us

GitHub is a fantastic tool โ€” I use it constantly. I'd like to understand more of how I work on GitHub, but I don't have all my data. I can setup an RSS hook on my public feed, but I do a lot of work on private repos as well.

This webapp is a simple data collector: add it to repos in question and it'll log everything you do on that repo into a MongoDB database. Each collection is named after the event type. Pretty cool, huh?

Installation

Simple, just run script/bootstrap from your clone.

You might need to create a token. Run script/generator and follow the necessary prompts. Keep a record of this token โ€” you'll need it for later configuration. Hell, save it to a .env file, why don't ya?

Deployment

I use Heroku because I'm obsessed with how easy it is to use. I also use hk because Go is freaking awesome. Download hk then run the following:

$ hk create my-github-log-app-thingy
$ hk addon-add mongohq
$ hk set GITHUB_USERNAME=your-username
$ hk set GITHUB_TOKEN=abc123
$ hk set AYGABTU_URL=http://my-github-log-app-thingy.herokuapp.com

Then you'll have to tell your aggregator which events you care about. You can view all the events here. Now, take the events you want and construct a JSON array. Then, set a string'd version of that as your GITHUB_HOOK_EVENTS:

$ hk set GITHUB_HOOK_EVENTS='["push","pull_request"]' # just an example!

Then deploy your code:

$ git push heroku master

Fetching data

It's all in Mongo. Now it's your job to get and understand it.

API endpoints are still in progress. Wanna help? Check out issue #2.

all-your-github-are-belong-to-us's People

Contributors

parkr avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.