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

GCP Fundamentals Getting Started With App Engine

Google Cloud Platform Fundamentals Getting Started with App Engine

Uploaded by

nadji habibi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
88 views

GCP Fundamentals Getting Started With App Engine

Google Cloud Platform Fundamentals Getting Started with App Engine

Uploaded by

nadji habibi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 7
GCP Fundamentals: Getting Started with App Engine Overview In this ab, you erate and depioy a simple App Engine application sing a vitual ervironment in the Google Cloud Shel Objectives Inti lb, you far how to perfor the following tasks: + natal the cloud SOK or App Engine + Preview an App Engine application running local in Clue Shel + Deploy an Apo Ensinespoliation, so that others can rach it + Disable an App Engine applestion, when you na longer want tobe Wale Set up your lab environment For each a, you geta new GOP project and set of resource for afd time at no 1. Make sive 0 signed into Gila sing an neognte window 2.Notethe lal secesstime(foexample, (2:00:00) and me sure you can “Tare eno pause feature. You can restart Kf esd bat youhave to aart at the Deaining S.Whenread, cick EEO 4. noteyourlab cradle. Youll use them ign ino Clu Piste Console. Open Google Console Caution: When you are inthe console donot deviate ‘om the lab instructions. Doing so may cause your ‘account o be blocked, Leatn more. goonezesz4ctuentowitats.n ‘Now to labs? View our introductory video! 5.Clck Open Gooale Console, 6 .lickUse another account and copreste crests ot lab no the roms 1 you use other redetial youl get ror or incur charges. 7. Accept the ems and skip the recover resource page. Donot eck End Lab unless you are frshed with hea or wat wo restrtit ‘This lars yourwark and teravesthe project Activate Google Cloud Shell ‘Goose Cloud stile vital machine that is loaded with deveooment tools, offers a persistent $68 home decor and runs onthe Google Cloud. Google Cou Shell provides commence accesso your GOP resoures, 1.In 6c? console, onthe tp ight tolbar clk the Open Claud Sel button _ own AH venen 1 ene 2 Click Contin, BB Cloud Shall Intakes a few moments o provision and connect tothe environment. When you ae connected, you ae aleady authenticated, and the project eto your PROJECT 1D ‘coud’ the commanctine tool for Google Cloud Platform It comes preinstallee on loud Shel and eupprt tab completion ‘You can it the soe acoount name with tis command ouput Example ouput ‘You can it the projet 0 with thie command Output Example ouput Ful documantation of gout ible on Google Cloud geloud Overview Task 1: Install the Cloud SDK for App Engine 1. Ron the folowing command intl the goiud component that includes the App 2 nial your App Engine app wih vow role and chooe its eon When prompted, select the rion where you wantyour App Engine application located 3.Clone the sourcecode repository fra sample appatonin the hele. wodd 4. Navigate tothe source drectony Task 2: Run Hello World application locally Inti task, you run the Hello Wold applcation in aloca virtual envrenment in Cloud Stl. Ensure that you ar atthe Clo Shell command romp. 1 Execute the following command to dounload and uodate the package ist 2. Satupavirual envionment in which youwillun your sppiaton, Python vital enitonmant are used to oat package instalation from the system, prompted Vn press and then Enter 2. Activate the virtual environment. 4. Navigate to your prolet decor and instal dependences 5. Run the appaton 6: Cloud Shell clck Web preview (=) > Preview on port 8080 evew he pplication Toaccess the Web preview con. you may need te collapse the Navigation 7-To end he tea, return to Cus Shell and pres CHIC to abort the deployed series, £8. Using the cloud Console, vetiy the app ene deployed Inthe Cloud Console on the Navigation mena ( So) cick App Engine» Dashboard Notice that na resources are deployed Task 3: Deploy and run Hello World on App Engine To deploy your appllestion othe Apo Engine Standard envionment 1-Navigate tthe source ecto 2 Deploy your Halla World aplication. ‘This ap deploy command uses th anpyame to ently project configuration. ‘3. Launch your browser view the app at tp:/YOUR,PROVECT.IDappepot.com Copy and past the URL its anew browser window, esa Hello Woeld! CCongasltons! You crested your frst applisation using Ap Engine Clk check my progress to vey the object Deploy the Hato World aplication to App Engine Task 4: Disable the application ‘App Engine ces o option to Undeply an aplication. ter an appllestion ia deployed remains deployed stough you could instead replace the sppliation with simple page that says something tke notin service Honever youcan dasble the apaiaton which causes ito nolnger be accesstle 1-Inthe Cloud Console, onthe Navigation menu ( =) cick App Engine > Sertigs 2 click Disable application. 5. Read he dialog massage. Enter the App ID and ck DISABLE you refresh the browser window you used view othe application ste, yu gt 404 ano. Google Congratulations! ‘You eeaed you fe applieation using App Engine! End your lab When youhave completed your lab, cick End Lab Qklabs removes the resources you've used and olean the account or you. You witbe gion an opperunty orate the ab experince. Select he appiable numberof stars type a comment, and then lick Submit “The number of stars ncatos the following stars Very diated + 2stas Dissatsties Neutral You can close the dalogbox if you dont want to provide feedback For feedback suggestion or cerectons, paste use the Support ab. Copyright 2019 Google LLC Alright reserved. Google andthe Google lage ae Uadematke ef Goeele LLC All other company and product names maybe ademas ofthe respective companies with which they ae associated

You might also like