Google App Engine using Java 1. Outline Getting started Guestbook example Todo example Simplified Madlib 2.

Slides:



Advertisements
Similar presentations
Developing in CAS. Why? As distributed you edit CAS 3 with Eclipse and build with Maven 2 – Best Practice for Release Engineering – Difficult edit-debug.
Advertisements

Custom Import Process School Year.  Legislation requires grades K-12 to report fitness scores to the GA DOE.  GA DOE selected FITNESSGRAM.
beas WEB App Installation
Using Eclipse. Getting Started There are three ways to create a Java project: 1:Select File > New > Project, 2 Select the arrow of the button in the upper.
Programming with Android: SDK install and initial setup Luca Bedogni Marco Di Felice Dipartimento di Informatica: Scienza e Ingegneria Università di Bologna.
How to use a scanner Throughout this slide show there will be hyperlinks (highlighted in blue) follow the hyperlinks to navigate to the specified Topic.
Objectives Moodle is an online learning environment where instructors & their students interact. In this workshop you will learn: 1.Configure system requirements.
Object-Oriented Enterprise Application Development Tomcat 3.2 Configuration Last Updated: 03/30/2001.
Best Practices for Website Design & Web Content Management.
Website Development with PHP and MySQL Introduction.
Hello Vaadin! CS 3130 Summer 2015.
Downloading and Installing AutoCAD Architecture 2015 This is a 4 step process 1.Register with the Autodesk Student Community 2.Downloading the software.
{ Apache - Click By, By, Anupam Mundale. Anupam Mundale. Viraj Kulkarni. Viraj Kulkarni.
Tomcat Configuration A Very, Very, Very Brief Overview.
Web Applications Basics. Introduction to Web Web features Clent/Server HTTP HyperText Markup Language URL addresses Web server - a computer program that.
ANDROID PROGRAMMING MODULE 1 – GETTING STARTED
The easy way to a nice looking website design By a total non-designer (Me!)
CS 160: Software Engineering August 27 Class Meeting Department of Computer Science San Jose State University Fall 2014 Instructor: Ron Mak
Java Enterprise Edition Java Web Development Structure of a web project Introduction to Web Applications The first project Introduction to Java Web Development.
Getting Started with Android Programming Note: if you have already installed android development tools, please check that you have the same version as.
Creating a Hello App Using Google App Engine. What are Google apps? Apps is an abbreviation for application. An app is a piece of software. It can run.
Amazon EC2 Quick Start adapted from EC2_GetStarted.html.
 What I hate about you things people often do that hurt their Web site’s chances with search engines.
SEEM4570: XAMPP, Eclipse, Summary of Html Kangfei Zhao Room 711,ERB
JSP and Servlets Lecture notes by Theodoros Anagnostopoulos.
Web server and web browser It’s a take and give policy in between client and server through HTTP(Hyper Text Transport Protocol) Server takes a request.
Adobe Dreamweaver CS3 Revealed CHAPTER ONE: GETTING STARTED WITH DREAMWEAVER.
M. Taimoor Khan * Java Server Pages (JSP) is a server-side programming technology that enables the creation of dynamic,
Prof. A.R. Rele. What Is Google App Engine? Google App Engine lets users run web applications on Google's infrastructure. App Engine applications are.
Eclipse Overview Introduction to Web Programming Kirkwood Continuing Education Fred McClurg © Copyright 2015, Fred McClurg, All Rights Reserved.
1 Mobile Computing Set Up Copyright 2015 by Janson Industries.
Chapter 1a© copyright Janson Industries RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.
Creating Effective School and PTA Websites Sam Farnsworth Utah PTA Technology Specialist
Tomcat Spencer Uresk. Notes This is a training NOT a presentation Please ask questions This is being recorded
CS441 CURRENT TOPICS IN PROGRAMMING LANGUAGES LECTURE 5_1 George Koutsogiannakis/ Summer
Plug-in Development Environment. Session Outline Tools Installation Configuration New Project Basic Debugging Remote Debugging.
How to Use Google Sites …to create an Electronic Portfolio.
9/2/ CS171 -Math & Computer Science Department at Emory University.
Setting up and getting going with…. MIT App Inventor.
Topic Java EE installation (Eclipse, glassfish, etc.) Eclipse configuration for EE Creating a Java Web Dynamic Project Creating your first servlet.
Tour Overview Introduction Collage Basics Collage Basics (Templates and Tools) Computer Configuration Bookmark Collage Getting Started Tour Collage Terminology.
Liferay Installation Prepared by: Do Xuan Hai 8 August 2011.
Google App Engine in Google Apps Deploying Google App Engine applications to Google Apps +
Chính phủ điện tử TS. Phạm Văn Tính Khoa CNTT, ĐH Nông Lâm TP.HCM
JSP Server Integrated with Oracle8i Project2, CMSC691X Summer02 Ching-li Peng Ying Zhang.
Surya Bahadur Kathayat Outline  Ramses  Installing Ramses  Ramses Perspective (Views and Editors)  Importing/Exporting Example.
CS562 Advanced Java and Internet Application Introduction to the Computer Warehouse Web Application. Java Server Pages (JSP) Technology. By Team Alpha.
PART 2 INTRODUCTION TO DYNAMIC WEB CONTENT AND PHP.
Core basic Java web server technologies. Tools Eclipse IDE for Java EE Developers (Netbeans also works) nloads/packages/eclipse-
Introduction to Eclipse Programming with an Integrated Development Environment.
Chapter 3 Servlet Basics. Contents A.Installing Eclipse WTP and configuring Tomcat B.Prime Number Problem C.Multiplication Table Problem.
Welcome Teachers! - WELCOME TO TEACHER WEBSITE BUILDING 101.
Part A. Remote Viewing IP Surveillance Camera Application Guide.
Downloading the App 1 Go to the right store. Access the App Store on iOS devices, the Play Store on Android, and for a.
Lindsey Velez, Director of Instructional Technology Single Sign-On One Click.
1 Web Programming with Servlets & JSPs WEB APPLICATIONS – AN OVERVIEW.
Get Secure! Facebook Privacy Tutorial Becky Benishek | November 2013.
Google App Engine using Java 1. Outline Getting started Guestbook example Todo example Simplified Madlib 2.
Downloading and Installing GRASP-AF Workshop Ian Robson Information Analyst, North of England Cardiovascular Network.
How to use Drupal Awdhesh Kumar (Team Leader) Presentation Topic.
Google Analytics implementation On this tutorial I will show you how to set up an Google Analytics account and how to connect it to a Wordpress website.
Writing simple Java Web Services using Eclipse
Google App Engine B. Ramamurthy Based on the material available at
Instructor: Prasun Dewan (FB 150,
Install Ruby If you are running on Mac OS X, Ruby is preinstalled.
JavaTeaching and Importing a github repository
© copyright Janson Industries 2011
Google App Engine Ying Zou 01/24/2016.
HTML Links.
Presentation transcript:

Google App Engine using Java 1

Outline Getting started Guestbook example Todo example Simplified Madlib 2

Install: Eclipse Java EE Install Eclipse Java EE (to support jsp) 3

Set Security, if needed If eclipse will not run because of Security, – System Preference – Security & Privacy – For “Eclipse” was blocked from opening, click “Open Anyway” 4

Install Google Plugin for Eclipse 4.3 Please follow the instruction at – l-eclipse l-eclipse-4.3 5

Create First GAE App in Eclipse File -> New – For me, I looked under Other and then Google to find Web Application Project – Click Next 6

Fill in Wizard See left for recommended info – Unchecked Use Google Web Toolkit – Checked Use App id Click Browse … to choose an App id 7

Create App id You will need to log in to Google first. Click Create App Id I recommend that you pick an appid such as yalecs112- -, e.g., yalecs112-yry3- guestbook for me 8

Directory Structure – src edu.yale.cs112 – [Servlets go here] – war [JSPs go here] lib – appengine-web.xml – web.xml 9

Directory Structure Java/Servlet code will go under src Pretty much everything else will go under war – Static files HTML CSS – Configuration files 10

Test First (Local Run) Right click project Go to Debug as (or Run as) > Web application Check Console to see message: – INFO: Dev App Server is now running After a few seconds, navigate to 11

If Everything Goes Well 12

Test Real Deployment Click on the g icon and then Deploy to App Engine The deployment may take a few min. If bored, you can login in to – google.com/ google.com/ To take a look at the status 13

Buggy GAE Sometime it may take a long time and eclipse still shows deploying, but the instance might have already been deployed. Check the GAE console – Click on the app id, and look for versions, or try – 14

Outline Getting started Guestbook example – Log in 15

Create Guestbook jsp Click on war, right click, New -> Other, specify jsp as filter, Next, specify guestbook.jsp, choose New JSP file (HTML), Finish 16

Create guestbookdemo.jsp Content See guestbook.jsp (cut-paste from ppt note) Make sure that you have guestbook.jsp to be under war 17

Configure Mapping war/WEB-INF/web.xml configures the mapping of the Web site, e.g., the first page (welcome page) to visit Change the welcome page from index.html to guestbook.jsp 18

19

Create CSS guestbook.jsp uses guestbookstyle.css to control display. Hence, add guestbookstyle.css – Click war, right click, New, Folder with name stylesheets. – Right click on the stylesheets folder > New > Other – Search for CSS File > Next – File name: guestbookstyle.css 20

21

Time to Test See Slide 12 22

Stop Server It is always a good idea to stop testing by clicking the red square 23

Outline Getting started Guestbook example – Log in – Post to guestbook 24

Add a Form to Allow Posting Insert before 25

Create SignGuestbookServlet.java See SignGuestbookServlet.java (see ppt note) 26

Update Mapping Tells App Engine that if a URL is to /sign, it will invoke the SignGuestbookServlet – Update war/WEB-INF/web.xml 27 sign edu.yale.cs112.SignGuestbookServlet sign /sign

28

Outline Getting started Guestbook example – Log in – Post to guestbook – Display content 29

Add Display of Existing Msgs See guestbook.jsp Step 3 part 30

Time to Test See Slide 12 31

Outline Getting started Guestbook example Todo example 32

33

Todo Illustrates how to use Java Persistence API (JPA) to store data EngineJava/article.html 34

JPA Basic Idea Each data item is represented as a Class 35

Create First GAE App in Eclipse File -> New – For me, I looked under Other and then Google to find Web Application Project – Click Next 36

Fill in Wizard See left for recommended info – Unchecked Use Google Web Toolkit – Check “Use App id” Click Browse … to choose an App id 37

Create App id You will need to log in to Google first. Click Create App Id I recommend that you pick an appid such as yalecs112- -todo, e.g., yalecs112-yry3- todo for me 38

Directory Structure – src edu.yale.cs112 – [Servlets go here] – war [JSPs go here] lib – appengine-web.xml – web.xml 39

Directory Structure Java/Servlet code will go under src Pretty much everything else will go under war – Static files HTML CSS – Configuration files 40

Test First (Local Run) Right click project Go to Debug as (or Run as) > Web application Check Console to see message: – INFO: Dev App Server is now running After a few seconds, navigate to 41

If Everything Goes Well 42

Test Real Deployment Click on the g icon and then Deploy to App Engine The deployment may take a few min. If bored, you can login in to – google.com/ google.com/ To take a look at the status 43

Buggy GAE? Sometime it may take a long time and eclipse still shows deploying, but the instance might have already been deployed. Check the GAE console – Click on the app id, and look for versions, or try – 44

Create Todo.java Model Click src, edu.yale.cs1 12, right click, new Class Todo, make package edu.yale.cs1 12.model 45

Check persistence.xml Check META-INF/persistence.xml 46

Create EMFService 47

Create Two Servlets 48

Outline Getting started Guestbook example Todo example Simplified Madlib 49