chrissloan / sinatra-book

Base Sinatra App for Facebook with Like Wall Capabilities

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sinatra Facebook App

Down and dirty setup for a Facebook Application utilizing the awesome Sinatra.

  • Built in functionality for a Facebook Like-wall setup

Awesomeness Utilized

Getting Started

It's as simple as editing the items found in the app.rb file. Make sure to change and edit the Global Variables for the Facebook items, Google Analytic ID and also the application.

Starting up the app

After you have edited the app.rb file with appropriate variable replacement, you can start up the app.

  1. $ > bundle (if you haven't already done so to get the gems)
  2. $ > bundle execute guard start (will watch your coffee-script and compass files)
  3. $ > shotgun app.rb (if using guard, you will need to do this in another terminal session)
  4. $ > http://127.0.0.1:9393/ or http://localhost:9393/

Seeing the wall and liked page

When developing, I have now added a param that can be passed in to see the wall and liked side of the app. In the url, by using: /?p=index as a parameter, this will tell the app to show the liked page. Removing the parameter will show the wall page.

About

Base Sinatra App for Facebook with Like Wall Capabilities


Languages

Language:Ruby 99.8%Language:JavaScript 0.2%Language:CoffeeScript 0.0%