0% found this document useful (0 votes)
17 views

Cloud Computing Task2

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)
17 views

Cloud Computing Task2

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
You are on page 1/ 11

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 http://code.google.com/appengine/downloads.html
CREATING A NEW GOOGLE WEB APPLICATION PROJECT:
1. Start Eclipse. From the Eclipse menu, select File-‐New-‐Other, then
Google-‐ Web Application Project.
2.Click Next, and in the resulting dialogue, enter appenginedemo for the
project name and com.epmmu 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 http://localhost:8888/
4. Open a web browser and type in the URL: http://localhost:8888 You
should see the application start page displayed
5. Open the file index.html 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:

9.Save the file and open the file index.html. In the main section, enter the
section highlighted in bold below:
10.Save index.html 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
http://appengine.google.com

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.

b.Accept terms, and Create Application. This will take a minute


or so.

3.COMPATABILITY 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
a.Ensure 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 https://developers.google.com/eclipse/docs/signin
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 http://yourappid.appspot.com

MONITORING STATISTICS ON YOUR APP :


You can monitor usage of your app through the dashboard at
appengine.google.com (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. https://developer.mozilla.org/en-US/docs/Learn/Common_questions/
How_do_you_host_your_website_on_Google_App_Engine
2. https://codelabs.developers.google.com/codelabs/cloud-app-engine-
python3#8
3. https://www.studocu.com/in/document/manchester-metropolitan-
university/enterprise-programming/tutorial-work/lab-02-developing-
applications-with-the-google-app-engine/1115341/view

You might also like