0% found this document useful (0 votes)
5 views12 pages

Experiment 3

The document outlines the steps for hosting a website on Google App Engine, focusing on deployment, scalability, and minimal infrastructure management. It includes objectives, expected outcomes, prior concepts, related theory, and implementation details for successfully publishing a website. The conclusion emphasizes the convenience of using Google App Engine for web hosting without the need for extensive technical management.

Uploaded by

VIDIT SHAH
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)
5 views12 pages

Experiment 3

The document outlines the steps for hosting a website on Google App Engine, focusing on deployment, scalability, and minimal infrastructure management. It includes objectives, expected outcomes, prior concepts, related theory, and implementation details for successfully publishing a website. The conclusion emphasizes the convenience of using Google App Engine for web hosting without the need for extensive technical management.

Uploaded by

VIDIT SHAH
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/ 12

Somaiya Vidyavihar University

K. J. Somaiya College of Engineering, Mumbai-77


Department of Computer Engineering

Batch: Roll No.: 16030724019


Experiment / assignment / tutorial
No.___3____
Grade: AA / AB / BB / BC / CC / CD /DD
Signature of the Staff In-charge with date

Experiment No: 3
Title: GCP - Steps for Hosting Your Website On
Google App Engine

Aim and Objective of the Experiment:


Aim: GCP - Steps for Hosting Your Website On Google App Engine
Objective :
• Deploy a Website: Host a static or dynamic website on Google App Engine.
• Scalability and Flexibility: Ensure the website can handle varying traffic loads
with automatic scaling.
• Minimal Infrastructure Management: Utilize Google’s managed
infrastructure to focus on development without worrying about server
management.
• Custom Domain Support: Optionally, map a custom domain to your Google
App Engine application.
• Monitoring and Logging: Enable monitoring to view application performance
and logs.
• Version Control: Implement version control for easy rollback and staged
deployment.

COs to be achieved:
1. Creating a website
2. Hosting it n Google app Engine
Somaiya Vidyavihar University
K. J. Somaiya College of Engineering, Mumbai-77
Department of Computer Engineering

Expected Outcome of Experiment

• Hypothesis Confirmation or Refutation: The data will either support or


contradict the hypothesis being tested.
• Data Collection and Trend Analysis: Gather measurable data that can
reveal patterns or trends for further analysis.
• Comparison to Control/Baseline: Determine differences or similarities
between experimental conditions and control groups.
• Verification of Theoretical Models: Results will either align with or
deviate from theoretical predictions, helping refine models.
• Technical Performance Validation: In tech experiments (e.g., hosting),
expect successful deployment, scalability, and proper monitoring of
system performance.
Somaiya Vidyavihar University
K. J. Somaiya College of Engineering, Mumbai-77
Department of Computer Engineering

Pre Lab/ Prior Concepts:

Basic Cloud Computing Knowledge: Understand what cloud computing is,


especially Platform-as-a-Service (PaaS) like Google App Engine, and how it
simplifies web hosting by managing infrastructure.
Google Cloud Platform (GCP) Overview: Familiarize yourself with Google
Cloud Console: how to create/manage projects, enable services, and navigate
through App Engine settings. Know how to configure billing in GCP as it's
required for most deployments.
App Engine Fundamentals: Learn about Google App Engine’s features, such
as automatic scaling, traffic splitting, and support for multiple programming
languages (Python, Node.js, Java, etc.).
Google Cloud SDK: Understand how to install and use Google Cloud SDK for
deploying applications from your local environment to Google App Engine.
Be familiar with commands like g-cloud auth, g-cloud app deploy, and g-cloud
config.
Website Development Basics: Have experience building a static or dynamic
website using technologies like HTML/CSS (for static) or languages such as
Python, Node.js, or Java (for dynamic content).

Related Theory:
1. Cloud Computing
• Definition: Cloud computing allows you to access and manage computing
resources (servers, storage, databases, networking) over the internet,
instead of using physical hardware.
• Relevance: Google App Engine is a Platform-as-a-Service (PaaS) offering,
which abstracts infrastructure management, allowing developers to focus
on writing code without worrying about server configurations or scaling
issues.
2. Platform-as-a-Service (PaaS)
Somaiya Vidyavihar University
K. J. Somaiya College of Engineering, Mumbai-77
Department of Computer Engineering

• Definition: PaaS is a cloud computing model that provides a platform


allowing developers to build, run, and manage applications without the
complexity of building and maintaining the infrastructure.
• Relevance: App Engine automates infrastructure management tasks such
as server provisioning, load balancing, scaling, and security patches. This
makes it ideal for web applications that need to scale without requiring
manual intervention.
3. Google App Engine Architecture
• Automatic Scaling: GAE automatically scales your application based on
incoming traffic, increasing or decreasing resources (instances)
dynamically. This eliminates the need for developers to manually manage
traffic spikes or dips.
• Sandboxed Environment: App Engine runs applications in a secure,
isolated environment, known as a sandbox. This ensures that each
application has limited access to the underlying infrastructure, improving
security and stability.
4. Web Hosting Basics
• Definition: Web hosting refers to making a website accessible via the
World Wide Web. In GAE, your web content (static or dynamic) is hosted
on Google’s infrastructure.
• Relevance: GAE is ideal for hosting both static content (e.g., HTML, CSS,
JavaScript) and dynamic content powered by languages such as Python,
Node.js, Java, and others.
5. HTTP and HTTPS Protocols
• Definition: HTTP (HyperText Transfer Protocol) and HTTPS (HTTP Secure)
are the protocols used for transferring web pages between the client
(browser) and server.
• Relevance: Google App Engine provides automatic support for both HTTP
and HTTPS protocols, ensuring secure and fast communication between
your web server and end-users.
Somaiya Vidyavihar University
K. J. Somaiya College of Engineering, Mumbai-77
Department of Computer Engineering

Implementation details:
Step 1: Go to the App Engine dashboard on the Google Cloud Platform Console
and press the Create button.

Step 2: If you've not created a project before, you'll need to select whether you
want to receive email updates or not, agree to the Terms of Service, and then
you should be able to continue.
Somaiya Vidyavihar University
K. J. Somaiya College of Engineering, Mumbai-77
Department of Computer Engineering

Step 3: Enter a name for the project, edit your project ID and note it down.
Project Name: MyCloudProject
Project ID: 133319421626
Step 4: Click the Create button to create your project.
Somaiya Vidyavihar University
K. J. Somaiya College of Engineering, Mumbai-77
Department of Computer Engineering

Step 5: We'll need a sample application to publish. If you've not got one to use,
download and unzip this sample app.
Somaiya Vidyavihar University
K. J. Somaiya College of Engineering, Mumbai-77
Department of Computer Engineering

Step 6: It includes the website folder containing your website content and
app.yaml is your application configuration file. Your website content must go
inside the website folder, and its landing page must be called index.html, but
apart from that it can take whatever form you like. The app.yaml file is a
configuration file that tells App Engine how to map URLs to your static files. You
don't need to edit it.
Publishing your Application Section
Now that we've got our project made and sample app files collected together,
let's publish our app.
Step 1: Open Google Cloud Shell
Step 2: Drag and drop the sample-app folder into the left pane of the code editor.
Step 3: Run the following in the command line to select your project:

Step 4: Run the following command to go to your app's directory


Somaiya Vidyavihar University
K. J. Somaiya College of Engineering, Mumbai-77
Department of Computer Engineering
Somaiya Vidyavihar University
K. J. Somaiya College of Engineering, Mumbai-77
Department of Computer Engineering

Step 5. Upload your app to App Engine


• Enter a number to choose the region where you want your application
located.
• Enter Y to confirm. Now navigate your browser to your-project-
id.appspot.com to see your website online.
Somaiya Vidyavihar University
K. J. Somaiya College of Engineering, Mumbai-77
Department of Computer Engineering
Somaiya Vidyavihar University
K. J. Somaiya College of Engineering, Mumbai-77
Department of Computer Engineering

Conclusion:-
Hosting your website on Google App Engine makes it easy for you to put your
site online without needing to manage servers or worry about handling lots of
visitors. Google automatically takes care of things like scaling up if your site gets
more traffic and keeping it secure. You just focus on building your site, and
Google takes care of the hard stuff like infrastructure and performance. It's a
convenient and efficient way to run a website without dealing with the technical
details of web hosting.

You might also like