jimpurbrick / hackinabox

A Python/Flask/Bootstrap/Heroku example Facebook application that allows sharing of data within hackathons

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hackinabox is both a simple example app for people wanting to quickly get a 
Facebook web application up and running and a useful app for people at 
hackathons to pool their facebook data to quickly build a dataset they can 
use to hack on.

To run Hackinabox first set up a Facebook application at 
https://developers.facebook.com/apps then follow the instructions for setting 
up a Flask app on Heroku at https://devcenter.heroku.com/articles/python but
upload (a fork of) the code at https://github.com/jimpurbrick/hackinabox
instead of a new empty repro.

The following environment variables need to be set up in the Heroku 
environment using Heroku config:

HACK_NAME (Namespace used to associate data with a hack, eg "EPFL")
SECRET_KEY (Arbitrary application secret key)
FACEBOOK_APP_ID (Generated by developers.facebook.com on app creation)
FACEBOOK_APP_SECRET (Generated by developers.facebook.com on app creation)
MYREDIS_URL (Generated by addons.heroku.com when MyRedis addon selected)
PASSWORD (Password used as query string parameter to /delete handler)

For local development, these environment variables can be added to a .env file
which is read by Foreman start and dev.hackinabox.herokuapp.com can be added
to the local hosts file to allow authentication with Facebook from the local 
machine.

The production Hackinabox app runs at https://hackinabox.herokuapp.com

Hackinabox was based on the Flask-Oauth Facebook example by mitsuhiko at https://github.com/mitsuhiko/flask-oauth/blob/master/example/facebook.py

About

A Python/Flask/Bootstrap/Heroku example Facebook application that allows sharing of data within hackathons


Languages

Language:Python 100.0%