0% found this document useful (0 votes)
23 views10 pages

Practical 9 1

Uploaded by

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

Practical 9 1

Uploaded by

Mr Banna
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

20012011055 CEIT: D-AB14 Dhruv.S.

Lakhani
---------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------

Practical: 9

AIM: -Google App Engine

Submitted by : Dhruv.S.Lakhani
Enrollment number : 20012011055

GANPAT UNIVERSITY
U. V. Patel College of Engineering
Computer Engineering Department

1|Page
20012011055 CEIT: D-AB14 Dhruv.S.Lakhani
---------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------

1. Abstract

Google App Engine was first released as a beta version in April 2008. It is a platform
fordeveloping and hosting web applications in Google-managed data centers.
Google’s App Engine opens Google’s production to any person in the world at no
charge. Much like Google gives us all free email with an amazing amount of long
term storage, we now havethe ability to run the software that we write in Google’s
data centers.

Google App Engine is cloud computing technology. Google App Engine is software
that facilitates the user to run his web applications on Google infrastructure. It is more
reliable

because failure of any server will not affect either the performance of the end user or
the service of the Google.

It virtualizes applications across multiple servers and data centers. Other cloud-based
platforms include offerings such as Amazon Web Services and Microsoft's Azure
ServicesPlatform.

2. Introduction

Google App Engine lets you run your web applications on Google's infrastructure.
App Engine applications are easy to build, easy to maintain, and easy to scale as your
traffic and data storage needs grow. With App Engine, there are no servers to
maintain: You just upload your application, and it's ready to serve your users.

You can serve your app from your own domain name (such as
http://www.example.com/) using Google Apps. Or, you can serve your app using a
free name on the appspot.com domain. You can share your application with the world,
or limit access to members of your organization.

Google App Engine supports apps written in several programming languages. With
App Engine's Java runtime environment, you can build your app using standard Java
technologies, including the JVM, Java servlets, and the Java programming
language—or any other language using a JVM-based interpreter or compiler, such as
JavaScript or Ruby. App Engine also features a dedicated Python runtime
environment, which includes a fast Python interpreter and the Python standard library.
The Java and Python runtime environments are built to ensure that your application
runs quickly, securely, and without interference from other apps on the system.

With App Engine, you only pay for what you use. There are no set -up costs and no
recurring fees. The resources your application uses, such as storage and bandwidth,
are measured by the gigabyte, and billed at competitive rates. You control the
maximum amounts of resources your app can consume, so it always stays within your
budget.

App Engine costs nothing to get started. All applications can use up to 500 MB of

2|Page
20012011055 CEIT: D-AB14 Dhruv.S.Lakhani
---------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------

storage and enough CPU and bandwidth to support an efficient app serving around 5
million page views a month, absolutely free. When you enable billing for your
application, your free limits are raised, and you only pay for resources you use above
the free levels.

3. Advantages & Disadvantages


But how exactly is App Engine useful in real-life settings and why would it benefit
you to begin using this low-cost, time-sensitive solution? Ask around and you’ll
commonly hear the following points:

Cost-effective: The price - or lack thereof - is the biggest selling point. The free tier is
incredibly generous and most small applications don’t need anything more. However,
if you do find that you need more features, even the paid apps are cost- friendly. You
only pay for the resources you use, and they’re relatively cheap. Best of all, you only
get charged for your application when it handles requests. Talk about maximizing
capital!

No servers to maintain: With App Engine, you don’t have any reason or need to
maintain a server. You simply upload your applications and they’re ready to go.
Google takes care of the rest for you. This frees up your resources so they can be
better utilized in other areas of your business.

Fully integrated: One of the advantages that often flies under the radar is that App
Engine is connected to Google’s many other products and services. App Engine,
BigQuery, Compute Engine, and Cloud Storage all work together for your greater
good.

Risk Free Trial Period: we can use its services for free for one month with $300
credit initially

Disadvantages
 You are putting your application in Google's hands Think about that for a
minute. You are at the mercy of Google -- if disaster strikes and Google one
day disappears, you are done too. Or, more realistically, if the Google App
Engine goes down for an hour, you are also down for an hour -- and you will
have no idea what happened. Even if you try and get an answer from someone
at Google, you won't. Just like Google Apps, it will be impossible to explain
things to your end users.

 Once you are in, you are really in Using Google's infrastructure is very
tempting. But any smart company should have some sort of plan for the future.
What if you realized that you didn't want to host your application on Google
App Engine anymore? Good luck, almost everything you are given access to is
proprietary -- that means all your data is locked into BigTable in a format that
isn't like a traditional relational database. It's also very tempting to use the
API's Google provides to interface with things like Google accounts.

3|Page
20012011055 CEIT: D-AB14 Dhruv.S.Lakhani
---------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------

 Privacy should not be taken lightly Google has a very strong privacy policy
-- and personally I trust them. However, I'm trusting them with my personal
information -- you will be trusting them with all of your company's data.
These are two completely different things. If you have a low trust tolerance,
you may not want to risk putting everything that belongs to your company
behind Google's doors. That said, I personally would still feel comfortable
putting company data on their infrastructure -- simply because I know it's
proven to be secure, scalable and robust over the last several years with their
own services.

4. Creating/Deploying Application

Creating an App Engine application is easy, and only takes a few minutes. And it's
free to start: upload your app and share it with users right away, at no charge and with
no commitment required.

Google App Engine applications can be written in either the Java or Python
programming languages.

The Steps for how to create an application and deploy on app engine is shown below.

Deploying a website with database on Google App Engine step by


step.

Pre-Requirements

 VS Code
 Google Cloud SDK
 PHP

4|Page
20012011055 CEIT: D-AB14 Dhruv.S.Lakhani
---------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------

1. Sign up with your existing Google account and you can see this HOME PAGE.

2. Now for create new project click on “Create Project” here.

5|Page
20012011055 CEIT: D-AB14 Dhruv.S.Lakhani
---------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------

3. Give and Project Name and Create it.

4. Now you can see Dashboard of your project.

5. Enable Cloud SQL Admin API

6|Page
20012011055 CEIT: D-AB14 Dhruv.S.Lakhani
---------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------

6. Now create an instance of your respective Database.

7|Page
20012011055 CEIT: D-AB14 Dhruv.S.Lakhani
---------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------

7. Now connect to your created instance of database.

“gcloud sql connect student-data-01 --user=root –quiet”

8. After getting connected create database & respective database create table.

9. Now Insert a row and fetch.

10. Now download & install Google Cloud SDK Shell.

Download link:
https://dl.google.com/dl/cloudsdk/channels/rapid/GoogleCloudSDKInstaller.exe

11. Now open Google Cloud SDK Shell

“gcloud init”

Please click on the link provided above. When you click on it, your browser will open. Then,

8|Page
20012011055 CEIT: D-AB14 Dhruv.S.Lakhani
---------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------

click on the Google Cloud ID and login.


12. Now select your Google Cloud Project.

13. Now select your Google Compute Engine Zone.

14. Here you have to migrate to directory where your project is saved.

9|Page
20012011055 CEIT: D-AB14 Dhruv.S.Lakhani
---------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------

15. Now for deployment run “gcloud app deploy” .

16. Your application has been deployed, you can also view your application by using
command “gcloud app browse”.

https://student-data-382116.el.r.appspot.com/

10 | P a g e

You might also like