-
Notifications
You must be signed in to change notification settings - Fork 1
Home
The easiest way to test it, is on a linux server that can be accessed from the internet.
Install git if you don’t have it yet.Then do:
git clone git://github.com/Sjors/ted-marathon-facebook-app.git
To test it, you simply run:
script/server
and that will run the application on port 3000. But first, you will need to configure some things.
Create a new Facebook application:
http://www.facebook.com/developers/editapp.php?new
The most important thing is the Callback URL, which will for now be:
http://yourserver.com:3000/
You should receive an API key and a secret key.
Now go to the config directory and do:
cp database.yml.example database.yml cp facebooker.yml.example facebooker.yml
You need to make a few changes to facebooker.yml, to make it look something like this:
development: api_key: ............. secret_key: ............. canvas_page_name: tedxbrazil callback_url: http://yourserver.com:3000
First time you run the application, you need to initialize the database and it needs to download the list of TED talks, like so:
rake db:migrate
rake ted:initial_import
You should now be able to run the server with:
script/server
And then surf to:
http://apps.facebook.com/tedxbrazil/
TODO: explain how to setup production mode with capistrano.