Mais conteúdo relacionado Semelhante a Gae開発入門 (20) Gae開発入門2. •
• H/N twitter: @patorash
• Android, CakePHP, WordPress, GAE(?) etc...
• Android GTUG
•
2 PHP
5 Softbank Desire Android
12
5. • Java, JSP/Servlet
(JSP/Servlet )
6. • Java, JSP/Servlet
(JSP/Servlet )
•
7. • Java, JSP/Servlet
(JSP/Servlet )
•
•
8. • Java, JSP/Servlet
(JSP/Servlet )
•
•
•
9. GAE
• Google App Engine
• Java , Python JRuby, Scala OK
• BigTable
•
10. GAE
• Google App Engine
• Java , Python JRuby, Scala OK
• BigTable
•
★Google
11. GAE
• Google App Engine
• Java , Python JRuby, Scala OK
• BigTable
•
★Google
★
12. GAE
• Google App Engine
• Java , Python JRuby, Scala OK
• BigTable
•
★Google
★
★
13. GAE
• Google App Engine
• Java , Python JRuby, Scala OK
• BigTable
•
★Google
★
★
★
14. GAE
• Google App Engine
• Java , Python JRuby, Scala OK
• BigTable
•
★Google
★
★
★
★appspot.com SSL
15. GAE
• Google App Engine
• Java , Python JRuby, Scala OK
• BigTable
•
★Google
★
★
★
★appspot.com SSL
★ SSL
16. GAE
• ※ 1 2
• 2
• 2 500
• Google Checkout
21. Amazon EC2 GAE
Google
Java / Python
BigTable
(1 )
22. Amazon EC2 GAE
Google
Java / Python
BigTable
(1 )
GAE
25. Python Java
• Python
• Java Android Java
26. Python Java
• Python
• Java Android Java
• BigTable GAE/Java
Slim3
27. GAE/Java Slim3
• GAE/Java
★JSP/Servlet • Slim3
★BigTable ★BigTable
★BigTable ✦Low Level API
✦JDO ★WebAPI
✦JSON
✦JPA
★Ant
✦Low Level API ★
28. GAE/Java Slim3
• GAE/Java
★JSP/Servlet • Slim3
★BigTable ★BigTable
★BigTable ✦Low Level API
✦JDO ★WebAPI
✦JSON
✦JPA
★Ant
✦Low Level API ★
29. • Eclipse Helios(3.6)
• Google Plugin(Eclipse Marketplace )
★ GAE/Java SDK
• Slim3 Plugin(Slim3 URL )
★
• Properties Editor(Eclipse Marketplace )
★
30. Hello, world
1.Project Slim3 Plugin
2.build.xml
3.Outline gen-controller
Run As → Ant Build
4. URL /
5.
6. Project
Run As → Web Application
7.http://localhost:8888/
33. GAE
GAE
1.Project Google → App Engine Setting
2.Application ID ApplicationID
3.Project Google → Deploy to App Engine
4. Google
5.
6.
OK
34. Slim3
•
• https://github.com/patorash/SampleBBS
Downloads zip
• Eclipse File → import
• Existing Projects into Workspace
• Select archive file DL zip finish
•
35. GAE
• Big Table Key Value Store
★ →
★ →
★ →
• 1MB
•
• 1
37. Model
•
★ =
★Model =
★ =
• Bbs Comment
• build.xml
• setter, getter
• (ModelRef<class>)
38. Service
• build.xml
•
• Create, Read, Update, Delete
39. Controller
• build.xml
• gen-controller controller war JSP
(JSP View)
• View gen-controller-without-view controller
(WebAPI )
40. View
• war JSP
• Controller JSP
• JSP import
41. POST
• Controller
• Validators request
Validators v = new Validators(request);
•
v.add(“name”, v.required());
• false
v.validate();
• errors JSP
• application_ja.properties
42. • URL
(http://localhost:8888/read/100 /read?id=100 )
• AppRouter.java
addRouting("/read/{id}", "/read?id={id}");
Notas do Editor \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n