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

Develop and Deploy your Mobile API with Ruby on Rails, Nginx, Unicorn and Capistrano

Develop and Deploy your Mobile API with Ruby on Rails, Nginx, Unicorn and Capistrano

So you are building your awesome sites and apps that you want it to be accessible on all smartphone, tablet and desktop devices. Definitely you need a proper backend and application programming interface (API), among others to allow these software components to interact with your core application brain. This session will try to discuss how you could develop your API with the magical Ruby on Rails, run it with mystical Unicorn and Nginx, and managed your deployment via Capistrano. Yes people, we're living in a world full of APIs.

Errazudin Ishak

September 11, 2013
Tweet

More Decks by Errazudin Ishak

Other Decks in Technology

Transcript

  1. Develop and Deploy Your Mobile API with Capistrano, Unicorn, Ruby

    on Rails & Nginx Wait.. What kind of title is this?
  2. Agenda What on earth.. For what reason.. So how to

    do that.. Ok, now what.. Summary
  3. Agenda What on earth.. For what reason.. So how to

    do that.. Ok, now what.. Summary
  4. Agenda What on earth.. For what reason.. So how to

    do that.. Ok, now what.. Summary
  5. "Programmers are like vampires. They're frequently up all night, paler

    than death itself, and generally afraid of being exposed to daylight. Oh yes, and they tend think of themselves (or at least their code) as immortal." - www.codinghorror.com
  6. System Administrators are like werewolves. They may look outwardly ordinary,

    but are incredibly strong, mostly invulnerable to stuf that would kill regular people -- and prone to strange transformations during a moon "outage". - www.codinghorror.com
  7. Agenda What on earth.. For what reason.. So how to

    do that.. Ok, now what.. Summary
  8. So how to do that Portable work environments VirtualBox, Vmware,

    etc Support provisioning tools eg. Chef, Puppet “vagrant up” and you're ready to fly
  9. So how to do that “vagrant ssh” and install your

    stuf manually package the greatest vagrant box ..and share within your team! .. or use automated provisioning
  10. The API Used by the various mobile devices (iPhone, Android

    and Blackberry smartphones) to communicate with the server All communications over https Each request includes authorisation token Responses are in JSON
  11. The API Fb login Example API calls: login, create user,

    get user, get photo, update photo, checkin, messaging, etc
  12. Agenda What on earth.. For what reason.. So how to

    do that.. Ok, now what.. Summary
  13. Agenda What on earth.. For what reason.. So how to

    do that.. Ok, now what.. Summary