Docsity

Cloud Computing Lab Manual Practical Journal Assignment 4 SPPU TE AIDS 2024 Pattern, Study Guides, Projects, Research of Computer Science

Toggle sidebar
bg1
Laboratory Assignment No. 6
Title: Google App Engine (GAE) Setup and Deployment of a Simple Web Application
Problem Statement: Install Google App Engine. Create a Hello World application or any other simple web
application using Python/Java.
Aim: To install Google App Engine and deploy a simple Hello World web application using Python.
Objectives:
• To understand the concept of Google App Engine (GAE).
• To install and configure Google App Engine.
• To develop a simple Hello World web application using Python.
• To deploy the application on Google App Engine.
• To understand the basic deployment process of cloud applications.
Software Requirements: Windows 10/11 Operating System, Python 3.x, Visual Studio Code, Google Cloud SDK,
Google App Engine, Google Cloud Account, Google Chrome / Mozilla Firefox
Hardware Requirements: Computer or Laptop, Minimum 4 GB RAM, Intel Core i3 Processor or above, Stable
Internet Connection
Theory:
Google App Engine (GAE)
Google App Engine (GAE) is a Platform as a Service (PaaS) offered by Google Cloud Platform that enables
developers to build, deploy, and manage web applications without managing the underlying infrastructure. It
automatically handles resource allocation, scaling, load balancing, and application monitoring.
Google App Engine supports multiple programming languages such as Python, Java, Go, PHP, Node.js, Ruby, and
.NET. Developers can focus on writing application code while Google manages the servers and infrastructure.
Advantages of Google App Engine
• Fully managed cloud platform.
• Automatic scaling based on application traffic.
• No server management required.
• Easy deployment of web applications.
• Built-in monitoring and logging services.
• Supports multiple programming languages.
• High availability and reliability.
Applications of Google App Engine
• Web application development.
• Enterprise business applications.
• Educational and learning platforms.
• E-commerce websites.
• REST API development.
• Cloud-based software solutions.
• Mobile application backend services.
pf2

Partial preview of the text

Download Cloud Computing Lab Manual Practical Journal Assignment 4 SPPU TE AIDS 2024 Pattern and more Study Guides, Projects, Research Computer Science in PDF only on Docsity!

Laboratory Assignment No. 6

Title: Google App Engine (GAE) Setup and Deployment of a Simple Web Application Problem Statement: Install Google App Engine. Create a Hello World application or any other simple web application using Python/Java. Aim: To install Google App Engine and deploy a simple Hello World web application using Python. Objectives:

  • To understand the concept of Google App Engine (GAE).
  • To install and configure Google App Engine.
  • To develop a simple Hello World web application using Python.
  • To deploy the application on Google App Engine.
  • To understand the basic deployment process of cloud applications. Software Requirements: Windows 10/11 Operating System, Python 3.x, Visual Studio Code, Google Cloud SDK, Google App Engine, Google Cloud Account, Google Chrome / Mozilla Firefox Hardware Requirements: Computer or Laptop, Minimum 4 GB RAM, Intel Core i3 Processor or above, Stable Internet Connection Theory:

Google App Engine (GAE)

Google App Engine (GAE) is a Platform as a Service (PaaS) offered by Google Cloud Platform that enables developers to build, deploy, and manage web applications without managing the underlying infrastructure. It automatically handles resource allocation, scaling, load balancing, and application monitoring. Google App Engine supports multiple programming languages such as Python, Java, Go, PHP, Node.js, Ruby, and .NET. Developers can focus on writing application code while Google manages the servers and infrastructure. Advantages of Google App Engine

  • Fully managed cloud platform.
  • Automatic scaling based on application traffic.
  • No server management required.
  • Easy deployment of web applications.
  • Built-in monitoring and logging services.
  • Supports multiple programming languages.
  • High availability and reliability. Applications of Google App Engine
  • Web application development.
  • Enterprise business applications.
  • Educational and learning platforms.
  • E-commerce websites.
  • REST API development.
  • Cloud-based software solutions.
  • Mobile application backend services.

Procedure:

  1. Create a Google Cloud account and sign in to the Google Cloud Console.
  2. Create a new Google Cloud Project.
  3. Enable the App Engine API for the project.
  4. Install the Google Cloud SDK on the system.
  5. Install Python 3.x if it is not already installed.
  6. Open the Command Prompt and initialize the Google Cloud SDK using the following command: gcloud init
  7. Create a project folder and add the application files (main.py and app.yaml).
  8. Write the Hello World application in Python. main.py from flask import Flask app = Flask(name) @app.route('/') def hello(): return "Hello, World!" if name == "main": app.run()
  9. Create the configuration file. app.yaml runtime: python entrypoint: gunicorn - b :$PORT main:app
  10. Open the Command Prompt in the project directory.
  11. Deploy the application using the following command: gcloud app deploy
  12. After successful deployment, open the application in the web browser using: gcloud app browse
  13. Verify that the browser displays the message "Hello, World!". Conclusion: Google App Engine was installed and a simple Hello World web application was developed using Python/Java successfully.