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

Exercise 4

The document outlines the procedure to configure Google App Engine and create a simple 'Hello World' web application using Python or Java. It includes steps for installing the Google Cloud SDK, initializing it, creating a new project, enabling billing, and deploying the application. The final result is a successfully launched static web page application on Google App Engine.

Uploaded by

953622104017
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

Exercise 4

The document outlines the procedure to configure Google App Engine and create a simple 'Hello World' web application using Python or Java. It includes steps for installing the Google Cloud SDK, initializing it, creating a new project, enabling billing, and deploying the application. The final result is a successfully launched static web page application on Google App Engine.

Uploaded by

953622104017
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

HARINI P

953622104029
EXERCISE - 04
USE THE GAE LAUNCHER TO LAUNCH THE WEB APPLICATIONS

Aim:
To find the procedure to configure Google App Engine. Create a hello world app and other
simple web applications using python/java.

Software Requirements:

 GoogleCloudSDKInstaller

Steps/ Procedure:

 Download and install Cloud SDK.


 https://cloud.google.com/sdk/docs/install.
 Select window and click Download the Google Cloud CLI installer.
 Launch the installer and follow the prompts. The installer is signed by Google LLC.
 After installation has completed, the installer presents several options.
 Enable all the options and give finish.

Initializing the Cloud SDK

1. Open the shell give command “gcloud init” to initialize.

1
HARINI P
953622104029

2. Choose option 2 ie, Create a new configuration.

3. Enter the configuration name.

4. Choose the account that you want to use for this configuration.

5. Choose option 2 ie, Sign in with a new Google Account.

6. In your browser, log in to your Google user account when prompted and click Allow to
grant permission to access Google Cloud resources.

2
HARINI P
953622104029
7. Go to google cloud console, Create a new project.

8. Enable billing for the project created by giving card details. Billing ->
Manage Billing Accounts -> Add Billing Account.

9. In navigation menu, in more products select App engine.


Click on Create Application.

3
HARINI P
953622104029
10. Create application by choosing region.

11. Select language as python and environment as standard.

12. Enter the following commands to download a copy (clone) of a Git repository from GitHub
to your local machine and to navigate into the directory inside the cloned repository.

git clone https://github.com/GoogleCloudPlatform/python-docs-samples.git


cd python-docs-samples/appengine/standard_python3/hello_world

4
HARINI P
953622104029
13. Deploy the application using command “gcloud app deploy”.

14. Open the deployed Google App Engine application in a web browser by
using the command “gcloud app browse”.

15. Click the generated link to view the app.

5
HARINI P
953622104029
16. Create three files such as main python file for web application, yaml file for App Engine
configuration and a text file which contains configuration.

App.yaml:

Main.py:

6
HARINI P
953622104029

Requirements.txt

17. In shell navigate to the folder which contains three files using command “cd <path>”.

18. Deploy the application using command “gcloud app deploy”.

7
HARINI P
953622104029

RESULT:

Thus the, static web page application was created, launched and tested in google
app engine.

PERFORMANCE (25)

VIVA VOCE (10)

RECORD (15)

TOTAL (50)

You might also like