Your SlideShare is downloading. ×
Google AppEngine Workshop
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Introducing the official SlideShare app

Stunning, full-screen experience for iPhone and Android

Text the download link to your phone

Standard text messaging rates apply

Google AppEngine Workshop

1,713
views

Published on

Published in: Technology, News & Politics

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,713
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
11
Comments
0
Likes
1
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Google AppEngine Workshop
    A crash course
  • 2. Google AppEngine
    Not Google Apps
  • 3. Why Google AppEngine?
  • 4. Scalable
    Scales very very very easily
    automagically
  • 5.
  • 6. Infrastructure as a Service
    Rent-a-car
  • 7. Platform as a Service
    Taxi
  • 8. Google AppEngine is PaaS
    Images demo
  • 9. Who’s on AppEngine
    Optimizely.com, BestBuy.com,
  • 10. Languages
    Python, Java, Go (Experimental)
  • 11. Objective
    Gain a basic knowledge of Google AppEngine
  • 12. Output
    Your own app
  • 13. Questions
  • 14. Setup
    https://coderbuddy1.appspot.com/testingentrance?group=albertsclass
  • 15. Setup
    Create an app on http://appengine.google.com
    Default options; High Replication Datastore
  • 16. Hello World!
  • 17. Services
    Datastore, URLFetch, Users, Email, Memcache (if we have time)
  • 18. Project URL Shortener
  • 19. Create Page
    index.html
  • 20. Datastore
    Really really fast storage
  • 21. Storing Data
  • 22. Create a Model
    Class Record(db.Model):
    name = db.StringProperty()
    data = db.TextProperty()
  • 23. Queries
    query = Link.all()
    query.filter(‘url_hash’,’cKj4d’)
    results = query.fetch(20)
  • 24. 15mins
    Shorten some URL’s
  • 25. URLFetch
    Interact with other websites
  • 26. URLFetch
    response = urlfetch.fetch(url=url)
    status = response.status_code
    content= response.content
  • 27. Verify those URL’s
    Fetch ‘em first!
  • 28. Users API
    Google Accounts
  • 29. Users API
    app.yaml
    login: required
  • 30. Users API
    user = users.get_current_user()
    user.nickname()
    user.email()
    user.user_id()
  • 31. Users API
    db.UserProperty()
  • 32. Users API
    user_id is unique at all times
  • 33. Create History List for Users
    Let users see list of their previously shortened url’s
  • 34. Email
  • 35. Email
    mail.send_mail(
    sender=admin@app.com,
    to=user@example.com,
    subject=”hi”,
    body=”hello!”)
  • 36. Shorten a link
    And tweet/facebook/plus it
  • 37. Click and flood!
  • 38. Memcache
    Need for speed
    (saves you money too!)
  • 39. Memcache
    Need for speed
    (saves you money too!)
  • 40. Memcache
    memcache.set(key,data)
    result = memcache.get(key)
  • 41. Speed ‘em up!
  • 42. That’s it!
    It’s your time to shine now…
  • 43. Albert Padin
    SpellDial.com
    @albertpadin
    ph.albertpadin