How To Create A Small App Engine Application Deployment On Google Cloud Platform

Overview

 
In this article, I’m going to describe how to create a small App Engine application deployment on Google Cloud Platform.
 
In this session you will:
  • Download starter code from a GitHub.
  • Run your application locally from a Cloud Shell.
  • Deploy your application with Google App Engine.
Prerequisites
  • Google cloud platform subscription.
Step 1
 
Login to here.
 
Step 2
 
Activate Cloud shell.
 
Click the right corner of the cloud shell button.
 
How To Create A Small App Engine Application Deployment On Google Cloud Platform
 
Click Continue.
 
How To Create A Small App Engine Application Deployment On Google Cloud Platform
 
Step 3
 
Enable Google App Engine Admin API,
  1. Click  Navigation Menu > APIs & Services > Library.

    How To Create A Small App Engine Application Deployment On Google Cloud Platform

  2. Type "App Engine Admin API" in the search box.
  3. Click App Engine Admin API.

    How To Create A Small App Engine Application Deployment On Google Cloud Platform

  4. Enabled window

    How To Create A Small App Engine Application Deployment On Google Cloud Platform
Step 4
 
Download the Hello world app
 
Run the following command in cloud shell
 
 
Step 5
 
Then go to the directory in the following command
 
d getting-started-java/appengine-standard-java8/helloworld
 
Step 6
 
Test the application using the application development server
 
Maven command to download and install Maven and run the app in the following command in cloud shell:
 
mvn.appengine:run
 
Output
 
[INFO]GCLOUD : INFO dev app server is now running.
 
View the app Click Web preview button > Preview on port 8080
 
How To Create A Small App Engine Application Deployment On Google Cloud Platform
 
Page should reassemble the following,
 
How To Create A Small App Engine Application Deployment On Google Cloud Platform
 
Step 7 - Deploy the app
 
Create an application on an App Engine with the following command
 
gcloud app create
 
Output
 
How To Create A Small App Engine Application Deployment On Google Cloud Platform
 
Do not use gcloud app deploy command as begun in the output to deploy the app, instead, run the following command to deploy the application.
 
mvn:appengine:deploy
 
You should get the following output,
 
How To Create A Small App Engine Application Deployment On Google Cloud Platform
 
Step 8 - View the application
 
Launch the browser in the following command,
 
gcloud app browse
 
OUTPUT
 
How To Create A Small App Engine Application Deployment On Google Cloud Platform
 
The application is deployed and displays the short message in the browser.
 
How To Create A Small App Engine Application Deployment On Google Cloud Platform


Similar Articles