Google App Engine Developer - Day1

50 %
50 %
Information about Google App Engine Developer - Day1

Published on March 12, 2014

Author: peihsinsu



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

GAE Developer - Day1 Simon @ MiCloud 2014Q1

● Install GAE Eclipse Plugin

Install GAE Eclipse Plugin ● Eclipse 4.3 (Kepler) ○ ● Eclipse 3.8/4.2 (Juno) ○ ● Eclipse 3.7 (Indigo) ○

Install GAE Eclipse Plugin

First GAE App ● Create GAE web project ● Review project & Edit Servlet ● Deploy to GAE

Create GAE Web Project

Going to Project Detail Java source code Web source code GAE setting Servlet setting

Local Develop Server

Local Server Supports ● Jetty Servlet container ● Admin page ● Datastore - HDR ● MySQL connect

Local Admin Console

Deploy GAE to Cloud

Getting Start….

GAE預設值... ● Stateless - no session enabled ● Without app stat page ● Have JSP standard UserPrinciple object for authentication ● Cannot DB connection ● JSTL support

建立簡單的UI -


Enable Session...

基本設定 - Enable Session

Enable App State...

App Stats Servlet <!-- direct /appstats requests to built-in appstats tool --> <servlet> <servlet-name>appstats</servlet-name> <servlet-class></servlet-class> </servlet> <servlet-mapping> <servlet-name>appstats</servlet-name> <url-pattern>/appstats/*</url-pattern> </servlet-mapping> <!-- appstats to record statistics/metrics for each request --> <filter> <filter-name>appstats</filter-name> <filter-class></filter-class> </filter> <filter-mapping> <filter-name>appstats</filter-name> <url-pattern>/*</url-pattern> </filter-mapping>


Use User Service….

User Service Callback Page Result Page extends: AbstractAppEngineAuthor izationCodeServlet extends: AbstractAppEngineAuthor izationCodeCallbackServl et G 1 2 34

<%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@ page import="java.util.List" %> <%@ page import="" %> <%@ page import="" %> <%@ page import="" %> <% UserService userService = UserServiceFactory.getUserService(); User user = userService.getCurrentUser(); if (user != null) { pageContext.setAttribute("user", user); %> <a href="<%= userService.createLogoutURL(request.getRequestURI()) %>">sign out</a>.)</p> <a href="<%= userService.createLoginURL(request.getRequestURI()) %>">Sign in</a> 整合User Service


● 預設Datastore: extensions.appengine.auth.oauth2. AppEngineCredentialStore User service default store

取得App Engine Id import; ApiProxy.getCurrentEnvironment().getAppId();

Team Work - Invite Cooperate User


Add a comment

Related presentations

Presentación que realice en el Evento Nacional de Gobierno Abierto, realizado los ...

In this presentation we will describe our experience developing with a highly dyna...

Presentation to the LITA Forum 7th November 2014 Albuquerque, NM

Un recorrido por los cambios que nos generará el wearabletech en el futuro

Um paralelo entre as novidades & mercado em Wearable Computing e Tecnologias Assis...

Microsoft finally joins the smartwatch and fitness tracker game by introducing the...

Related pages

Google Developers

Tools to help you develop your app and grow it into a business ... Google Developers Console; Google Play Console; Cast SDK Console; Chrome Web Store ...
Read more

Google App Engine: Platform as a Service - App Engine ...

Google App Engine lets you build and run applications on Google’s infrastructure. App Engine applications ... go right to the developer's ...
Read more

Google App Engine - Sign in - Google Accounts

Sign in with your Google Account Email Password Stay signed in For your convenience, keep this checked. On shared devices, ...
Read more

App Engine - Platform as a Service — Google Cloud Platform

... APIs used by most apps. App Engine also includes ... Google App Engine is a platform for ... App Engine Docs. View App Engine Developer Docs.
Read more

Google Apps | Google Developers

Enterprise applications that can be added to a Google Apps domain. Developers can publish ... Apps, including Google Apps Vault, Google ...
Read more

Google App Engine for Java Developers - Google Docs

Google App Engine for Java Developers Course ... This course gives you how to quickly build scalable web applications in Java using Google App Engine.
Read more

googleappengine - Google App Engine - Google Project Hosting

Google App Engine. Project Home Downloads Wiki Issues Source. ... Run your web applications on Google's infrastructure.
Read more

Redirecting... - Google Play

Google Play Developer Console enables developers to easily publish and distribute their ... Sign in to continue to Google Play Developer Console Email ...
Read more

Google Cloud Platform - Sign in - Google Accounts

Google Cloud Platform lets you build, deploy, and scale applications, websites, and services on the same infrastructure as Google. One account. All of ...
Read more