echo-o & Google App Engine dev - BarCamp Saigon 1

16
by Tien Loi Nguyen @ Multinc with guidance from Huy Zing BarCamp Saigon 1 November 15, 2008

description

For BarCamp Saigon 1, Multinc describes their experiences developing http://echo-o.com on top of the Google App Engine platform

Transcript of echo-o & Google App Engine dev - BarCamp Saigon 1

Page 1: echo-o & Google App Engine dev - BarCamp Saigon 1

by Tien Loi Nguyen @ Multincwith guidance from Huy Zing

BarCamp Saigon 1November 15, 2008

Page 2: echo-o & Google App Engine dev - BarCamp Saigon 1

echo-oThe features of echo-o Application:

Index pageSpeaker pageAudience pageModerator page

Page 3: echo-o & Google App Engine dev - BarCamp Saigon 1

echo-oIndex page:

Page 4: echo-o & Google App Engine dev - BarCamp Saigon 1

echo-oGraph in speaker page:

Page 5: echo-o & Google App Engine dev - BarCamp Saigon 1

echo-oAudience page:

Page 6: echo-o & Google App Engine dev - BarCamp Saigon 1

echo-oModerator page:

Page 7: echo-o & Google App Engine dev - BarCamp Saigon 1

Google app engineGoogle App Engine lets you run your web

applications on Google's infrastructure easy to starteasy to scale

Page 8: echo-o & Google App Engine dev - BarCamp Saigon 1

Prepare for developing app engine applicationspython 2.5 (http://www.python.org/download/)

google app engine SDK (http://code.google.com/appengine/downloads.html)

Page 9: echo-o & Google App Engine dev - BarCamp Saigon 1

Hello WorldCreate a configuration file called

“app.yaml”

Page 10: echo-o & Google App Engine dev - BarCamp Saigon 1

Hello WorldCreate a script file called “helloworld.py”

Page 11: echo-o & Google App Engine dev - BarCamp Saigon 1

Hello WorldRun the application at localhost:

Upload your application to google app engine:

Page 12: echo-o & Google App Engine dev - BarCamp Saigon 1

Some noticesCannot join the tables(models)Cannot get more than 1000 results from a

databaseInequality filters are allowed on one

property onlyProperties in inequality filters must be

sorted before other sort ordersGQL does not have an OR operator, but it

has an IN operator

Page 13: echo-o & Google App Engine dev - BarCamp Saigon 1

Problems we ran intoServer error

Page 14: echo-o & Google App Engine dev - BarCamp Saigon 1

Problems we ran intoLimited CPU quota

Page 15: echo-o & Google App Engine dev - BarCamp Saigon 1

Problems we ran intoProblem: How to detect how many

audiences are still aliveSolution: Polling request every few

seconds

Page 16: echo-o & Google App Engine dev - BarCamp Saigon 1

http://multinc.com/ http://code.google.com/appengine/