Experiment 3
Experiment 3
Experiment No: 3
Title: GCP - Steps for Hosting Your Website On
Google App Engine
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
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
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:
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.