Padrino + Sequel
  for lightweight web apps

        Angel Pizarro
        angel@upenn.edu
Sequel for DB access
Sequel for DB access
Arel-style query
   (Actually was always like this)
Arel-style query
   (Actually was always like this)
“dataset” == Sequel::Model
Sequel is a BIG topic.
See http://sequel.rubyforge.org/documentation.html
               for more information
Padrino: Sinatra base
Origin was the “sinatra-more” gem
All of Sinatra with some rails-style helper
methods and dir struct...
Motivating Example #1


A to-do list of items
CRUD like functionality from scratch
LIVE CODE !!
Motivating Example #2


A to-do list of items
CRUD like functionality using the
Padrino admin panel
LIVE CODE !!
Motivating Example #3
To make space on the SAN, we need to archive
projects to offline storage
Location of the offline archive...
CODE REVIEW !!
(too lazy to live code anymore :P)
Thanks!

          More Information:
              http://www.padrinorb.com
              http://www.sinatrarb.com
       ...
padrino_and_sequel
padrino_and_sequel
padrino_and_sequel
padrino_and_sequel
padrino_and_sequel
padrino_and_sequel
padrino_and_sequel
padrino_and_sequel
Upcoming SlideShare
Loading in …5
×

padrino_and_sequel

2,038 views
1,957 views

Published on

A small introduction to PAdrino and Sequel Ruby libraries

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
2,038
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
16
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide






















  • padrino_and_sequel

    1. 1. Padrino + Sequel for lightweight web apps Angel Pizarro angel@upenn.edu
    2. 2. Sequel for DB access
    3. 3. Sequel for DB access
    4. 4. Arel-style query (Actually was always like this)
    5. 5. Arel-style query (Actually was always like this)
    6. 6. “dataset” == Sequel::Model
    7. 7. Sequel is a BIG topic. See http://sequel.rubyforge.org/documentation.html for more information
    8. 8. Padrino: Sinatra base Origin was the “sinatra-more” gem All of Sinatra with some rails-style helper methods and dir structure Sorta like Merb without the ridiculous gem & version dependencies Nice set of generators for models, controllers, etc.
    9. 9. Motivating Example #1 A to-do list of items CRUD like functionality from scratch
    10. 10. LIVE CODE !!
    11. 11. Motivating Example #2 A to-do list of items CRUD like functionality using the Padrino admin panel
    12. 12. LIVE CODE !!
    13. 13. Motivating Example #3 To make space on the SAN, we need to archive projects to offline storage Location of the offline archive must be tracked Archive contents (e.g. file names) must be searchable Use MySQL full-text search) A project’s meta-data must be stored & searchable Meta-data may contain sensitive details, site must be minimally secured (Basic Auth)
    14. 14. CODE REVIEW !! (too lazy to live code anymore :P)
    15. 15. Thanks! More Information: http://www.padrinorb.com http://www.sinatrarb.com http://sequel.rubyforge.org Rate my talk: http://speakerrate.com/talks/4272-padrino-sequel-for-lightweight-web-apps

    ×