Google App Engine Developer - Day1

  • View
    599

  • Download
    4

Embed Size (px)

DESCRIPTION

Start to use Java App Engine - Install & deploy - First code, make a simple UI - User login integrate

Text of Google App Engine Developer - Day1

  • 1. GAE Developer - Day1 Simon @ MiCloud 2014Q1

2. https://developers.google.com/eclipse/docs/getting_started?hl=zh-tw Install GAE Eclipse Plugin 3. Install GAE Eclipse Plugin Eclipse 4.3 (Kepler) https://dl.google.com/eclipse/plugin/4.3 Eclipse 3.8/4.2 (Juno) https://dl.google.com/eclipse/plugin/4.2 Eclipse 3.7 (Indigo) https://dl.google.com/eclipse/plugin/3.7 4. Install GAE Eclipse Plugin 5. First GAE App Create GAE web project Review project & Edit Servlet Deploy to GAE 6. Create GAE Web Project 7. Going to Project Detail Java source code Web source code GAE setting Servlet setting 8. Local Develop Server 9. Local Server Supports Jetty Servlet container Admin page Datastore - HDR MySQL connect 10. Local Admin Console 11. Deploy GAE to Cloud 12. Getting Start. 13. GAE... Stateless - no session enabled Without app stat page Have JSP standard UserPrinciple object for authentication Cannot DB connection JSTL support 14. UI - https://jetstrap.com 15. 16. Enable Session... 17. - Enable Session 18. Enable App State... 19. App Stats Servlet appstatscom.google.appengine.tools.appstats.AppstatsServletappstats/appstats/*appstatscom.google.appengine.tools.appstats.AppstatsFilterappstats/* 20. http://localhost:8888/appstats/stats 21. Use User Service. 22. User Service Callback Page Result Page extends: AbstractAppEngineAuthor izationCodeServlet extends: AbstractAppEngineAuthor izationCodeCallbackServl et G 1 2 34 23. sign out.) Sign in User Service 24. Others... 25. Datastore: com.google.api.client. extensions.appengine.auth.oauth2. AppEngineCredentialStore User service default store 26. App Engine Id import com.google.apphosting.api.ApiProxy; ApiProxy.getCurrentEnvironment().getAppId(); 27. Team Work - Invite Cooperate User 28. Q&A END