Upgrade to Pro — share decks privately, control downloads, hide ads and more …

RORO 06/2012 - Bustle & API Taster

RORO 06/2012 - Bustle & API Taster


Fred Wu

June 28, 2012


  1. @fredwu

  2. API Taster Bustle

  3. Bustle https://github.com/fredwu/bustle

  4. Readme Driven Development RDD

  5. Activities recording and retrieving using a simple Pub/Sub* architecture. *

    At least on surface it is, lol.
  6. None
  7. Like Faye, Redis and ZeroMQ, etc A "traditional" pub/sub usually

    involves 3rd party services
  8. I want...

  9. Really simple, perl devs would hate it Don't need to

    support 100M (imaginary) users Works with ActiveRecord Can be extended/migrated to use with other data stores Decoupled from the main app
  10. Bustle Overview Publisher Subscriber Subscription Active Record Persistence Layer w/

    orm_adapter Redis Faye
  11. Simple API Bustle::Publishers.add Bustle::Subscribers.add Bustle::Subscriptions.add Bustle::Publisher.publish Bustle::Subscriber.activities and a few

    others ...
  12. gem 'bustle'

  13. https://github.com/fredwu/api_taster API Taster

  14. It's insanely great.

  15. Just kidding.

  16. *For some, I hope. But it's useful.*

  17. *Not just on surface!! (╯°□°)╯ ┻━┻ A quick and easy

    way* to visually test your Rails application's API
  18. None
  19. It's a Chrome extension Every single API needs to be

    manually defined Inputs (request data) need to be manually entered Can't share the inputs easily Postman is Awesome, But...
  20. I want...

  21. API endpoints are automatically generated from your Rails routes definition

    Defining inputs is as easy as defining routes Post params can be shared with your test factories
  22. None
  23. Isn't it beautiful?

  24. gem 'api_taster'

  25. Demo