Hacking our way to geembo

328 views

Published on

Presentation for Athens Ruby Meetup #16

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
328
On SlideShare
0
From Embeds
0
Number of Embeds
7
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Hacking our way to geembo

  1. 1. HACKING OUR WAY to geembo
  2. 2. WHO THE DARN AM I? Aggelos Avgerinos CTO and Founder @GeemboHQ Loves coffee, metal, opensource and bacon
  3. 3. Behind the scenes...omniauth HTTPartydevise ...unfortunately resque (+scheduler)octokit turbolinkslinkedin madmimi
  4. 4. OmniauthA flexible authentication system utilizing Rack middleware
  5. 5. Omniauthomniauth.rb
  6. 6. PROBLEM!What about local development?
  7. 7. Faking omniauth in localhost /getmein or user-flavored /getmein/:username Disclaimer: don’t try this @ 127.0.0.1!
  8. 8. Solution!routes.rbusers_controller.rb
  9. 9. Private BetaPrivate beta in 2 scaffolds
  10. 10. Scaffold for RequestedMailuid from Githubmail [given by user]username from Githubfull_name from Github
  11. 11. Scaffold for AcceptedMailJust the same as RequestedMail
  12. 12. Private Betarequested_mails_controller.rb
  13. 13. Private Betaauthentications_controller.rb
  14. 14. MadmimiEmail Marketing Service
  15. 15. The maileraccepted_mailer.rb
  16. 16. ResqueBackground jobs
  17. 17. ResqueA ruby library for creating, queryingand processing jobsA rake task for starting a workerA sinatra app for monitoringqueues, jobs and workers
  18. 18. Initializerresque.rb
  19. 19. Rake Taskresque.rake
  20. 20. A jobapp/workers/user_stack.rb
  21. 21. OOOPS!What about scheduled jobs?
  22. 22. Resque Schedulerschedule.yml
  23. 23. Thanks!@eavgerinos@geemboHQ

×