This document provides an overview of using Google App Engine as a platform for personal information services and applications. It discusses the programming languages supported by App Engine, including Python, Java, Go, and others. It also outlines some of App Engine's key features like URL fetching, task scheduling, and image processing. The document notes that App Engine's free usage tier is sufficient for most personal uses. It also discusses some libraries and frameworks that can be used with App Engine like Django and Tornado. Finally, it shares some examples of applications that have been built on App Engine.
8. 使用Django
The App Engine Python environment includes these
versions of Django: 1.2, 1.1, 1.0, and 0.96
Tornado
https://github.com/facebook/tornado/tree/master/demos/appengine
http://www.tornadoweb.org/documentation/wsgi.html?highlight=appengine
10. Lua in Appengine
With Java's help
http://code.google.com/p/aelua/
http://code.google.com/p/jillcode/
http://code.google.com/p/kahlua/
https://github.com/krka/kahlua2
http://sourceforge.net/projects/luaj/
11. from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
application = webapp.WSGIApplication([('/', MainPage),
('/newentry', NewEntry),
('/editentry', EditEntry),
('/deleteentry', DeleteEntry),
],
debug=True)
def main():
run_wsgi_app(application)
if __name__ == '__main__':
main()
12. def administrator(method):
class HomeHandler(BaseHandler):
def get(self):
entries = db.Query(Entry).order('-published').fetch(limit=5)
if not entries:
if not self.current_user:
self.redirect("/compose")
return
self.render("home.html", entries=entries)
... ... ... ...
application = tornado.wsgi.WSGIApplication([
(r"/", HomeHandler),
(r"/archive", ArchiveHandler),
import re
(r"/feed", FeedHandler),
import tornado.web
], **settings)
import tornado.wsgi
import wsgiref.handlers
def main():
from google.appengine.api import users
wsgiref.handlers.CGIHandler().run(application)
from google.appengine.ext import db
if __name__ == "__main__":
class Entry(db.Model):
main()
author = db.UserProperty()
title = db.StringProperty(required=True)
html = db.TextProperty(required=True)
published = db.DateTimeProperty(auto_now_add=True)
updated = db.DateTimeProperty(auto_now=True)
https://raw.github.com/facebook/tornado/master/demos/appengine/blog.
py
13. Using AppEngine in Enterprise Dev?
● 现在还不合适,推荐Amazon EC2
● 作为前端,可以很容易扩展
● 作为练习平台
● 使用于特定的部分的任务
http://code.google.com/appengine/business/
App Engine for Business is no more, but don't worry. Almost all the features you
wanted in App Engine for Business will now be available to all App Engine
developers in an upcoming release. This includes:
● SSL for custom domains
● Support
● Hosted SQL
● Service-level Agreement
14. http://www.google.com/events/io/2011/sandbox.html
Wiki, CMS, MicroBlogging, GameServer, AppServer,
Wedding, Ask-Answer, EBook, SNS Server, Online
Shop, Workflow
can NOT
Video, Audio, big files hosting, High computing, High CPU usage,
image hosting