Gae

1,603 views
1,523 views

Published on

Published in: Technology, Business
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,603
On SlideShare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
47
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Gae

  1. 1. Google App Engine <ul>GAE </ul>
  2. 2. Google App Engine <ul><li>網路主機供應商 </li><ul><li>免費
  3. 3. 只提供兩種語言 </li></ul><li>網路上類似的服務 </li><ul><li>台灣:智邦生活館
  4. 4. 國外:HostMonster </li></ul></ul>
  5. 5. Google App Engine <ul>Python Java <li>為了 google 主機安全,兩種語言都有限制 </li></ul>
  6. 6. Google App Engine <ul><li>Software Development Kit </li><ul><li>google_appengine_1.2.7.zip </li><ul><li>dev_appserver.py
  7. 7. appcfg.py </li></ul></ul></ul>
  8. 8. Google App Engine <ul><li>helloworld/helloworld.py </li></ul>print 'Content-Type:Text/plain' print '' print 'Hello, world!'
  9. 9. Google App Engine <ul><li>helloworld/app.yaml </li></ul>application: hellowolrd version: 1 runtime: python api_version: 1 handlers: - url: /.* sciprt: hellowwolrd.py
  10. 10. Google App Engine <ul><li>run </li></ul>dev_appserver.py <ul><li>--clear_datastore
  11. 11. --datastore_path
  12. 12. --address
  13. 13. exec dir </li></ul>
  14. 14. Google App Engine <ul><li>helloworld/app.yaml </li><ul><li>appcfg.py update helloworld/
  15. 15. http://iwhiori.appspot.com </li></ul></ul>application: ID version: 1 runtime: python api_version: 1 handlers: - url: /.* sciprt: hellowwolrd.py
  16. 16. Google App Engine <ul><li>Gql </li><ul><li>Take helloworld.txt for example! </li></ul></ul>
  17. 17. Google App Engine <ul><li>from google.appengine.ext import db </li><ul><li>StringProperty()
  18. 18. IntegerProperty() </li></ul><li>from google.appengine.api import users </li><ul><li>get_current_user() </li></ul></ul>

×