This document discusses developing and deploying a mobile API using Ruby on Rails, Unicorn, Capistrano, and Nginx. It covers setting up development environments using Vagrant, deploying to staging and production environments on AWS, and considerations for using tools like EC2, RDS, ELB. The mobile API allows communication between mobile devices and a server through HTTPS requests containing authorization tokens and returning JSON responses.
16. "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
17. 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
22. 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
23. Still not convinced?
$ vagrant box add base http://files.vagrantup.com/lucid32.box
$ vagrant init
$ vagrant up
24. 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
26. 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
27. The API
Fb login
Example API calls: login, create user, get user, get
photo, update photo, checkin, messaging, etc