A Sinatra run Facebook App
This will be short and sweet as my last post was also about creating a Facebook App.
I have been doing down and dirty Facebook Like walls left and right it seems for the past couple of months for record labels and their bands. I was tired of setting up an app every single time that pretty much did the same thing:
- Like the page
- Get free crap
So I fixed the problem and made my own reusable bootstrap app utilizing some technology buzz words out the hoo-ha. I know I mentioned about using Jekyll to create a Facebook app, but there were a lot less hoops to go through for a Sinatra app. Plus, I was able to find a nice Facebook OpenGraph gem to use for parsing the POST request for like requests.
In not so random order, the bootstrap uses:
- Sinatra => light weight ruby backend
- Coffeescript => have I mentioned how awesome this is to compile ruby looking syntax into JavaScript
- Compass => SASS framework that makes writing CSS 10x faster
- Haml => I've written other posts on why this rocks my socks
It's pretty straight forward to use by setting a few variables in the app.rb file then creating your own SCSS and content, you will be up and running in no time.
I am still tweaking it here and there — just added Google Analytic support to track events on things that offer downloads, but it is fully functional.
Clone it, fork it, have fun with it: https://github.com/chrissloan/sinatra-book
| June 2013 | ||||||
|---|---|---|---|---|---|---|
| S | M | T | W | T | F | S |
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 | 19 | 20 | 21 | 22 |
| 23 | 24 | 25 | 26 | 27 | 28 | 29 |
| 30 | ||||||




1 shared their opinion. ADD YOURS »
Add your opinion here