Ruby on Rails application that provides analytics for Facebook posts of a Facebook page. A user should be able to login using Facebook, authorize access for a specific page they administer, and see a display of that pages' top 5 posts as well as a sortable table of 100 most recent posts.
Ruby HTML CSS CoffeeScript JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
bin
config
db
lib
log
public
test
vendor/assets
.gitignore
Gemfile
Gemfile.lock
LICENSE.md
README.rdoc
Rakefile
config.ru

README.rdoc

README

This README would normally document whatever steps are necessary to get the application up and running.

This source code is accompanied by this blog post: richardsumilang.com/programming/ruby/ror/facebook-page-analytics-ror/

  • Ruby version

ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-darwin14]

  • System dependencies

Rails 4.2.5

  • Configuration

The following environment variables must be set:

  • FB_APP_ID

  • FB_APP_SECRET

  • Database creation

rake db:migrate

  • How to run the test suite

  • rake test: runs all unit, functional and integration tests.

  • rake test:units: runs all the unit tests.

  • rake test:functionals: runs all the functional tests.

  • rake test:integration: runs all the integration tests. Each one of these commands requires some time and they are not the best solution while developing a new feature or fixing a bug. In this circumstance we just want to have a quick feedback from the unit test of the code we are editing.

  • How to run the application

Run the application server:

rails s

Run the job worker:

rake jobs:work

License

fb-page-analytics-ror by Richard Sumilang is licensed under a Creative Commons Attribution 4.0 International License. Based on a work at github.com/rsumilang/fb-page-analytics-ror.

creativecommons.org/licenses/by/4.0/