GAE
Slim3
•

•   H/N                twitter: @patorash
•                      Android, CakePHP, WordPress, GAE(?) etc...
•         Android                                    GTUG
•

                         2                  PHP
    5               Softbank Desire                          Android
          12
GAE
•        Java, JSP/Servlet
    (JSP/Servlet             )
•        Java, JSP/Servlet
    (JSP/Servlet             )
•
•        Java, JSP/Servlet
    (JSP/Servlet             )
•

•
•        Java, JSP/Servlet
    (JSP/Servlet             )
•

•

•
GAE
•   Google App Engine
•                   Java , Python JRuby, Scala   OK
•                  BigTable
•
GAE
•   Google App Engine
•                   Java , Python JRuby, Scala   OK
•                  BigTable
•

    ★Google
GAE
•   Google App Engine
•                   Java , Python JRuby, Scala   OK
•                  BigTable
•

    ★Google

    ★
GAE
•   Google App Engine
•                   Java , Python JRuby, Scala   OK
•                  BigTable
•

    ★Google

    ★

    ★
GAE
•   Google App Engine
•                   Java , Python JRuby, Scala   OK
•                  BigTable
•

    ★Google

    ★

    ★

    ★
GAE
•   Google App Engine
•                   Java , Python JRuby, Scala         OK
•                  BigTable
•

    ★Google

    ★

    ★

    ★

    ★appspot.com                                 SSL
GAE
•   Google App Engine
•                   Java , Python JRuby, Scala         OK
•                  BigTable
•

    ★Google

    ★

    ★

    ★

    ★appspot.com                                 SSL
    ★                            SSL
GAE




•   ※             1   2
•   2
•   2                     500


•   Google Checkout
Amazon EC2                GAE

                  Google
                     Java / Python
                       BigTable


(1            )
Amazon EC2                GAE

                  Google
                     Java / Python
                       BigTable


(1            )




          GAE
Python   Java
Python   Java



•   Python
Python        Java



•   Python
•   Java              Android Java
Python              Java



•   Python
•   Java                  Android Java




•   BigTable            GAE/Java
    Slim3
GAE/Java Slim3

•   GAE/Java
    ★JSP/Servlet            •   Slim3
    ★BigTable                   ★BigTable
    ★BigTable                       ✦Low   Level API
      ✦JDO                      ★WebAPI

                                    ✦JSON
      ✦JPA
                                ★Ant

      ✦Low   Level API          ★
GAE/Java Slim3

•   GAE/Java
    ★JSP/Servlet            •   Slim3
    ★BigTable                   ★BigTable
    ★BigTable                       ✦Low   Level API
      ✦JDO                      ★WebAPI

                                    ✦JSON
      ✦JPA
                                ★Ant

      ✦Low   Level API          ★
• Eclipse Helios(3.6)
• Google Plugin(Eclipse Marketplace         )
    ★        GAE/Java SDK
•   Slim3 Plugin(Slim3                      URL     )
    ★

•   Properties Editor(Eclipse Marketplace       )
    ★
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/
GAE
GAE

 GAE
GAE

                GAE

1.Project             Google → App Engine Setting
2.Application ID            ApplicationID

3.Project             Google → Deploy to App Engine
4.          Google


5.
6.
              OK
Slim3

•

•   https://github.com/patorash/SampleBBS
                      Downloads      zip
•   Eclipse               File → import
•   Existing Projects into Workspace
•   Select archive file       DL        zip   finish
•
GAE
•   Big Table             Key Value Store
    ★           →
    ★    →
    ★           →
•                         1MB


•



•                    1
Slim3

•   Ant
•   Model


•



    GAE         1
Model

•

    ★            =
    ★Model             =
    ★                      =
•   Bbs Comment
•   build.xml
•   setter, getter
•                    (ModelRef<class>)
Service



•   build.xml
•

•   Create, Read, Update, Delete
Controller


•   build.xml
•   gen-controller controller     war        JSP
           (JSP   View)
•   View                     gen-controller-without-view controller
                  (WebAPI                    )
View


•   war                    JSP
•                  Controller    JSP


•   JSP   import
POST

•   Controller
•   Validators          request
        Validators v = new Validators(request);

•

        v.add(“name”, v.required());

•                          false
        v.validate();

•   errors                  JSP


•                application_ja.properties
•   URL
    (http://localhost:8888/read/100   /read?id=100   )
•   AppRouter.java
    addRouting("/read/{id}", "/read?id={id}");

Gae開発入門

  • 1.
  • 2.
    • • H/N twitter: @patorash • Android, CakePHP, WordPress, GAE(?) etc... • Android GTUG • 2 PHP 5 Softbank Desire Android 12
  • 3.
  • 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
  • 23.
    Python Java
  • 24.
    Python Java • Python
  • 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/
  • 31.
  • 32.
  • 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
  • 36.
    Slim3 • Ant • Model • GAE 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}");