jlatt / sbsdiffs

Side-by-Side Diffs Oauth App for Github

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Side-by-Side Diffs for Github

sbsdiffs is a flask app that is easily deployed to heroku. A reference app runs at diff.jlatt.com.

Deploying

  • Register a new application on Github to get an oauth consumer key and secret.
  • Create a new application on Heroku.
  • Generate a key for Flask sessions in python:
>>> import os
>>> os.urandom(24).encode('base64').strip()
  • Set the following environment variables:
GITHUB_CONSUMER_KEY='.........'
GITHUB_CONSUMER_SECRET='..........'
FLASK_SESSION_KEY='......'
  • Push to heroku:
$ git push heroku master

About

Side-by-Side Diffs Oauth App for Github


Languages

Language:Python 98.0%Language:Shell 2.0%