2. THE PRINCESS
Many years of experience with APIs/REST
Developer support, helping people be
successful
Love hacking, creating prototypes
(check my blog, lots of code samples)
Wednesday, July 24, 13
3. THIS TALK
How to prototype in the cloud
Deploy full application stack
Basic example in PHP (Drupal)
More extensive examples in Node and Python
Most code available on Github
Wednesday, July 24, 13
4. PAAS PROVIDERS
Many providers
Examples here feature free payment tier,
portability, maturity
Heroku
Appfog
Others: Engineyard, Joyent, etc.
Wednesday, July 24, 13
5. APPFOG / PHP
Originally PHPFog
Now supports Java, .NET, Node, Ruby,
Python, PHP
Moderate level of configuration available
Many frameworks supported
Easy quick-start
Ruby-based toolkit
Wednesday, July 24, 13
12. HEROKU
Polyglot system
Started with Ruby on Rails
Ruby, Node.js, Clojure, Java, Python, and Scala.
Quick deployment, fine control of processes
Examples: Django, LinkedIn Today SMS,
IODocs
Wednesday, July 24, 13
13. HEROKU:
DJANGO PREREQUISITES
Heroku Toolbelt (Ruby)
Python
PIP for package management
% easy_install pip
Virtualenv
% pip install virtualenv
Heroku User Account
Postgres (needed for Django)
Wednesday, July 24, 13
14. HEROKU:
CREATE DJANGO APP
Following the Heroku Django tutorial
% mkdir herokudjango
% cd herokudjango
% virtualenv venv --distribute
% source venv/bin/activate
% pip install django-toolbelt
% django-admin.py startproject
herokudjango .
Wednesday, July 24, 13
24. HEROKU:
DEPLOY EXISTING DJANGO APP
Django/LinkedIn/Twilio Integration
https://github.com/synedra/django-linkedin-
simple
GET/POST
Stores Auth from LinkedIn
Copy this code into the new application
Procfile: web: python todaynag/manage.py runserver
Check the local server http://127.0.0.1:8000
Wednesday, July 24, 13
26. HEROKU:
NODE.JS
Take an existing app and deploy to Heroku
IODocs: https://github.com/mashery/iodocs
HowTo on PrincessPolymath.com
Wednesday, July 24, 13
29. SUM UP
Many cloud providers to choose from
Develop locally, deploy to public facing
cloud
Major languages supported
Hackdays
Quick web apps
Experiments
Wednesday, July 24, 13