0% found this document useful (0 votes)
10 views11 pages

Google App Engine Web App Creation Guide

Task 2

Uploaded by

pxavxx
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views11 pages

Google App Engine Web App Creation Guide

Task 2

Uploaded by

pxavxx
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

OUTCOME

BASED LAB
TASK REPORT
TITLE OF THE TASK
Create and deploy any web
application using Google App
Engine

OUTCOME BASED LAB TASK REPORT

Students will be able to create their own web


application and deploy on Google App
Engine

Submitted by
RAM PRASATH M

NAME OF THE CANDIDATE


RAM PRASATH M

BANNARI AMMAN INSTITUTE OF TECHNOLOGY


(An Autonomous Institution Affiliated to Anna University, Chennai)
SATHYAMANGALAM-638401
MAY 2021

DECLARATION

I affirm that the lab task work titled “Create and deploy any web application using google
App Engine” being submitted as the record of original work done by us under the
guidance of Mr. Sureshkumar S, Designation, Department of Computer Science and
Engineering.

(Signature of candidate)
RAM PRASATH M
(181CS249)

I certify that the declaration made above by the candidates is true.

(Signature of the Guide)


NAME OF THE LAB HANDLING FACULTY
ourceManager is the master that arbitrates all the available cluster resources and
thus helps in managing the distributed applications running on the
YARN system.
Its work is to manage each NodeManager
ourceManager is the master that arbitrates all the available cluster resources and
thus helps in managing the distributed applications running on the
YARN system.
Its work is to manage each NodeMa
OBJECTIVE:
Google App Engine is a powerful platform that lets you build and run applications
on Google’s infrastructure — whether you need to build a multi-tiered web
application from scratch or host a static website. Here's a step-by-step guide to
hosting your website on Google App Engine.
INTRODUCTION:
Google provides a cloud development and simulation environment that lets
applications be developed and tested on developers’ machines before being
moved to the Google App Engine.
Eclipse is a standard development environment used by developers working
in Java, C++ and many other languages. We will need to use a plug-in for
eclipse for the Google App Engine. If your version of Eclipse does not
have this, you should download and install the Google App Engine plugin,
available at [Link]
CREATING A NEW GOOGLE WEB APPLICATION PROJECT:
1. Start Eclipse. From the Eclipse menu, select File-‐New-‐Other, then
Google-‐ Web Application Project.
[Link] Next, and in the resulting dialogue, enter appenginedemo for the
project name and [Link] as the package. Clear the checkbox for Use
Google Web Toolkit. Leave the others at their default setting: Then click
Finish

You will now have a new project in which a


Web application for the Google App Engine
can be developed.

RUNNING THE APPLICATION :


3. In Project Explorer, select appenginedemo by clicking once. Right-‐click
and from the menu select Run As-‐Web Application The console should
show the message: The server is running at [Link]
4. Open a web browser and type in the URL: [Link] You
should see the application start page displayed
5. Open the file [Link] listed in the Project Explorer (in lab3/war).
Change the text Hello App Engine to some text of your choice (note it is in
two places). Save, and
You have created and executed a Web application using the Google App
Engine development tools.

ADDING A NEW WEB PAGE TO THE APPLICATION:


6. In Project Explorer, select the war directory in appenginedemo and Right-‐
click, select New-‐Other-‐Web-‐JSP. Click Next.
7. Enter the file name cloud_computing and click Finish
8. In the file that is created, locate the tags, and insert the following text:

[Link] the file and open the file [Link]. In the main section, enter the
section highlighted in bold below:
[Link] [Link] and run the application again. From the home page,
click the link Cloud Computing. You should see the new page displayed
Stopping and Starting the AppEngine Development Server
You may want to stop the server running. Click the Red Button in the App
Engine Console Window

Demonstration
Your tutor should now give a demo of uploading the app to a live Google
Apps page. If you want to do this for yourself, you will need to create a
Google Apps account or use your class one. You can have up to 10 apps
per account at the time of writing. Ensure that you are logged into your
Google account inside Eclipse.
CREATING YOUR OWN APP ENGINE APPLICATION :
1. Log onto your account at
[Link]

2. Select Create Project


a. Create a Project Name, and either remember the unique
app-‐id shown or create your own. unique appid on the
appspot domain. You will need this id later to enter into your
Eclipse Developer screen.

[Link] terms, and Create Application. This will take a minute


or so.

[Link] PROBLEM

Currently (Oct. 2016) the Google App Engine runs Java 1.7 . By
default, your Eclipse compiler is probably using Java 1.8 or later.
You need to set the defaultversion for the app engine project to be
1.7, together with the Project Facets if they are set too.
You will know if you have this problem if you see a message
somewhere similar to “Unable to update app : Class file is Java 8 but
max supported is Java 7” In this case, set the Java Compliance
level in the Project Properties
4. Publish your demo app from Eclipse
[Link] you are signed into your Google account. It should indicate
this at the bottom of the screen. If you cannot log in from Eclipse,
quit Eclipse, log into Google from your browser, then restart Eclipse.
See problem at [Link]
b. Set your app id in Eclipse. Right-‐click the project— Google—
AppEngineSettings.
c. Enter your id created
previously

5. Now access your app live at [Link]

MONITORING STATISTICS ON YOUR APP :


You can monitor usage of your app through the dashboard at
[Link] (ensure you are signed in to the account you are
using for the
demos)
CONCLUSION:
We conclude that Google App Engine is a scalable platform while maintaining
consistent performance but has some limitations due to its architecture and
restrictions imposed on the development tools and environment.
REFERENCES:
1. [Link]
How_do_you_host_your_website_on_Google_App_Engine
2. [Link]
python3#8
3. [Link]
university/enterprise-programming/tutorial-work/lab-02-developing-
applications-with-the-google-app-engine/1115341/view

Common questions

Powered by AI

The AppEngine Development Server is used to run and test web applications locally before deploying them to Google App Engine. It can be started by selecting the project in Eclipse and running it as a Web Application, which will display the web application at http://localhost:8888/. Management involves starting the server to run tests and stopping it using the red button in the App Engine Console Window .

To develop a web application on Google App Engine using Eclipse, you need to have the Google App Engine plugin installed in Eclipse. If it's not installed, you can download it from the provided URL . Additionally, you should have a Google account to create a project on appengine.google.com . Also, there is a necessity to ensure Java compatibility, as Google App Engine runs Java 1.7 by default, contrasting with Eclipse's default of Java 1.8 or later .

Creating a unique app-id is crucial as it serves as an identifier on the appspot domain for the Google App Engine project. This id is used to distinguish applications during deployment and access. During deployment, developers input this app-id in the AppEngine settings within Eclipse to ensure the application is correctly associated with the project on Google App Engine .

If developers encounter login issues within Eclipse while deploying to Google App Engine, they should first ensure they are signed into their Google account. If problems persist, the recommendation is to log into Google from a browser, then restart Eclipse. Developers should check relevant documentation for any persistent login errors .

Google App Engine ensures scalability and consistent performance through its architecture, which is designed to handle varying loads efficiently. It manages resources across distributed systems, which helps maintain performance consistency as applications scale. However, there are some limitations imposed by its architecture and the development tools provided .

A compatibility issue arises due to the default use of Java 1.7 by Google App Engine, whereas Eclipse typically uses Java 1.8 or later. This can lead to errors such as 'Unable to update app: Class file is Java 8 but max supported is Java 7'. The resolution involves resetting the Java Compliance level in Project Properties to 1.7 .

Google App Engine offers monitoring capabilities through a dashboard accessible at appengine.google.com. It allows users to track application usage statistics. Users must ensure they are logged in with the relevant credentials to access this feature .

To add a new web page, right-click the 'war' directory in the Project Explorer of your appenginedemo project, select New > Other > Web > JSP, and click Next. Enter a file name (e.g., 'cloud_computing') and click Finish. Modify the newly created file as needed and update the index.html to include navigation to the new page. Save all changes and run the application again to see the additions reflected .

Eclipse is considered a standard development environment due to its support for various programming languages such as Java and C++. It offers a familiar interface and a rich set of features that developers benefit from, such as integrated development tools and compatibility with Google App Engine through specific plugins .

To create a new Google Web Application Project in Eclipse, start by selecting File > New > Other from the Eclipse menu. Choose Google > Web Application Project, then proceed by entering a project name (e.g., 'appenginedemo') and a package name (e.g., 'com.epmmu'). Make sure to uncheck 'Use Google Web Toolkit' and leave other settings at default before clicking Finish .

You might also like