Google App Engine using GCP 1. To deploy an application, you need to first create a project (or you can choose any existing project, if you have any). This pdf is based on the Hello World tutorial in...

do lab iaw instructions


Google App Engine using GCP 1. To deploy an application, you need to first create a project (or you can choose any existing project, if you have any). This pdf is based on the Hello World tutorial in GCP website. Start by clicking on “Start a tutorial”-> Try App Engine -> Java -> Start. 2. Alternatingly, click or copy/paste the following link (for tutorial use the above one, for your own project you can use this link): https://console.cloud.google.com/projectcreate Give the Project Name as the picture and click on Create. https://console.cloud.google.com/projectcreate After creating the project, you will see like: 3. Next, you may want to install Cloud shell in your computer; however, you can directly access Cloud Shell from your browser as below. We will clone the sample code from Google, you can use your own also. Note: If the directory already exists, remove the previous files before cloning: rm -rf appengine-try-java git clone https://github.com/GoogleCloudPlatform/appengine-try-java cd appengine-try-java https://github.com/GoogleCloudPlatform/appengine-try-java If you want to view your code enter the following command: cat src/main/java/myapp/DemoServlet.java We are using Maven, which means you must specify a Project Object Model, or POM, which contains information about the project and configuration details used by Maven to build the project. 4. To test your app enter: mvn appengine:run Terminate the instance of the application by pressing Ctrl+C in the Cloud Shell. You can see your app with "Web preview" using port 8080. By running your server entering: mvn appengine:run You can see your app with "Web preview" using port 8080. Now, output can be seen. 5. To deploy your app into a website, you need to create an app in a region (Note: If you already created an app, you can skip this step). (When asked for numeric choice, give according to your preference): gcloud app create 6. Now you can use Cloud Shell to deploy your app. First, set which project to use: gcloud config set project tutorial-219223 Then deploy your app: mvn appengine:deploy 7. You can check in on your app by monitoring its status on the App Engine dashboard, select the App Engine section. In our case, the url: (for your case, it will differ. From any browser, all over the internet/earth, this website link will work. Perhaps this is your first website, ENJOY!) http://tutorial-219223.appspot.com or, http://gcptestf19.appspot.com/ Done. Note: You can perform all these operations in your browser. However, you can download and install SDK, and can perform all the operations from your computer. You can download the GCP SDK from here: https://cloud.google.com/sdk/downloads#interactive Thank you! ~ Mukhtar http://tutorial-219223.appspot.com/ http://gcptestf19.appspot.com/ https://cloud.google.com/sdk/downloads#interactive
Nov 23, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here