{"id":9413,"date":"2021-05-31T09:59:41","date_gmt":"2021-05-31T09:59:41","guid":{"rendered":"https:\/\/prwatech.in\/blog\/?p=9413"},"modified":"2024-03-19T10:58:33","modified_gmt":"2024-03-19T10:58:33","slug":"cloud-functions","status":"publish","type":"post","link":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/bigquery\/cloud-functions\/","title":{"rendered":"Cloud Functions"},"content":{"rendered":"\r\n<h2>Cloud Functions Quickstart<\/h2>\r\n<p>&nbsp;<\/p>\r\n<p>Cloud Functions, a serverless computing solution provided by Google Cloud Platform (GCP), empowers developers to build and deploy lightweight, event-driven applications effortlessly. This introduction will guide you through the quickstart process for setting up and deploying your first Cloud Function, enabling you to kickstart your serverless journey with ease.<\/p>\r\n<p>To begin, ensure you have a GCP account and have installed the Google Cloud SDK on your local machine. With these prerequisites met, you can proceed to create your first Cloud Function.<\/p>\r\n<p><strong>Prerequisites<\/strong><\/p>\r\n\r\n\r\n\r\n<p><a href=\"https:\/\/www.prwatech.com\/course\/gcptraining\" target=\"_blank\" rel=\"noreferrer noopener\" data-type=\"URL\" data-id=\"https:\/\/www.prwatech.com\/course\/gcptraining\">GCP<\/a> account<\/p>\r\n\r\n\r\n\r\n<p>Open Console.<\/p>\r\n\r\n\r\n\r\n<p>Open Menu &gt; Cloud Functions<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"270\" height=\"304\" class=\"wp-image-9423\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-668.png\" alt=\"\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-668.png 270w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-668-266x300.png 266w\" sizes=\"auto, (max-width: 270px) 100vw, 270px\" \/><\/figure>\r\n\r\n\r\n\r\n<p>Click on <a href=\"https:\/\/prwatech.in\/blog\/\">create function<\/a><\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"549\" height=\"238\" class=\"wp-image-9424\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-669.png\" alt=\"\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-669.png 549w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-669-300x130.png 300w\" sizes=\"auto, (max-width: 549px) 100vw, 549px\" \/><\/figure>\r\n\r\n\r\n\r\n<p>Give Function name and Region.<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"547\" height=\"294\" class=\"wp-image-9425\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-670.png\" alt=\"\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-670.png 547w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-670-300x161.png 300w\" sizes=\"auto, (max-width: 547px) 100vw, 547px\" \/><\/figure>\r\n\r\n\r\n\r\n<p>Choose the trigger type.<\/p>\r\n\r\n\r\n\r\n<p>If you need authentication you can tick require authentication.<\/p>\r\n\r\n\r\n\r\n<p>Then Click Save<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"535\" height=\"464\" class=\"wp-image-9426\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-671.png\" alt=\"\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-671.png 535w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-671-300x260.png 300w\" sizes=\"auto, (max-width: 535px) 100vw, 535px\" \/><\/figure>\r\n\r\n\r\n\r\n<p>The trigger will be created. Click next.<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"538\" height=\"454\" class=\"wp-image-9427\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-672.png\" alt=\"\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-672.png 538w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-672-300x253.png 300w\" sizes=\"auto, (max-width: 538px) 100vw, 538px\" \/><\/figure>\r\n\r\n\r\n\r\n<p>In configuration choose the runtime.<\/p>\r\n\r\n\r\n\r\n<p>\u00a0Give the code. Then press deploy.<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-9428\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-673.png\" alt=\"\" width=\"819\" height=\"544\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-673.png 628w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-673-300x200.png 300w\" sizes=\"auto, (max-width: 819px) 100vw, 819px\" \/><\/figure>\r\n\r\n\r\n\r\n<p>The below code is to display \u2018Hello World!\u2019.<\/p>\r\n\r\n\r\n\r\n<p>exports.helloWorld = (req, res) =&gt;<\/p>\r\n\r\n\r\n\r\n<p>{<\/p>\r\n\r\n\r\n\r\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 let message = req.query.message\u00a0 || req.body.message || &#8216;Hello World!&#8217;;<\/p>\r\n\r\n\r\n\r\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 res.status(200).send(message);<\/p>\r\n\r\n\r\n\r\n<p>}<\/p>\r\n\r\n\r\n\r\n<p>The function will be deployed.<\/p>\r\n\r\n\r\n\r\n<p>Open the function which we created.<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"477\" height=\"171\" class=\"wp-image-9429\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-674.png\" alt=\"\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-674.png 477w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-674-300x108.png 300w\" sizes=\"auto, (max-width: 477px) 100vw, 477px\" \/><\/figure>\r\n\r\n\r\n\r\n<p>We can test the function which we created. Click testing.<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"628\" height=\"139\" class=\"wp-image-9430\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-675.png\" alt=\"\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-675.png 628w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-675-300x66.png 300w\" sizes=\"auto, (max-width: 628px) 100vw, 628px\" \/><\/figure>\r\n\r\n\r\n\r\n<p>The triggering event will be displayed in here.<\/p>\r\n\r\n\r\n\r\n<p>Click Test the function button.<\/p>\r\n\r\n\r\n\r\n<p>It will display the output.<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"312\" height=\"469\" class=\"wp-image-9431\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-676.png\" alt=\"\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-676.png 312w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-676-200x300.png 200w\" sizes=\"auto, (max-width: 312px) 100vw, 312px\" \/><\/figure>\r\n<p>&nbsp;<\/p>\r\n<p>This is all about Cloud Functions Quickstart<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>Cloud Functions Quickstart &nbsp; Cloud Functions, a serverless computing solution provided by Google Cloud Platform (GCP), empowers developers to build and deploy lightweight, event-driven applications effortlessly. This introduction will guide you through the quickstart process for setting up and deploying your first Cloud Function, enabling you to kickstart your serverless journey with ease. To begin, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1632,1],"tags":[1532,605,699,700,727,984,617,683,684,685,611,1400,692],"class_list":["post-9413","post","type-post","status-publish","format-standard","hentry","category-bigquery","category-google-cloud-platform","tag-cloud-function","tag-gcp","tag-gcp-certification","tag-gcp-cloud-console","tag-gcp-cloud-function","tag-gcp-course","tag-google-cloud","tag-google-cloud-certification","tag-google-cloud-console","tag-google-cloud-courses","tag-google-cloud-platform","tag-google-cloud-platform-tutorial","tag-google-cloud-training"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Cloud Functions Quickstart - Prwatech<\/title>\n<meta name=\"description\" content=\"Master Cloud Functions Quickstart with Prwatech - Dive deep with our expert instructors and comprehensive curriculum.\" \/>\n<meta name=\"robots\" content=\"noindex, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Cloud Functions Quickstart - Prwatech\" \/>\n<meta property=\"og:description\" content=\"Master Cloud Functions Quickstart with Prwatech - Dive deep with our expert instructors and comprehensive curriculum.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/bigquery\/cloud-functions\/\" \/>\n<meta property=\"og:site_name\" content=\"Prwatech\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prwatech.in\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-05-31T09:59:41+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-19T10:58:33+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-668.png\" \/>\n<meta name=\"author\" content=\"Prwatech\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@Eduprwatech\" \/>\n<meta name=\"twitter:site\" content=\"@Eduprwatech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Prwatech\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/bigquery\/cloud-functions\/\",\"url\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/bigquery\/cloud-functions\/\",\"name\":\"Cloud Functions Quickstart - Prwatech\",\"isPartOf\":{\"@id\":\"https:\/\/prwatech.in\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/bigquery\/cloud-functions\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/bigquery\/cloud-functions\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-668.png\",\"datePublished\":\"2021-05-31T09:59:41+00:00\",\"dateModified\":\"2024-03-19T10:58:33+00:00\",\"author\":{\"@id\":\"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3\"},\"description\":\"Master Cloud Functions Quickstart with Prwatech - Dive deep with our expert instructors and comprehensive curriculum.\",\"breadcrumb\":{\"@id\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/bigquery\/cloud-functions\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/bigquery\/cloud-functions\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/bigquery\/cloud-functions\/#primaryimage\",\"url\":\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-668.png\",\"contentUrl\":\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-668.png\",\"width\":270,\"height\":304},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/bigquery\/cloud-functions\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/prwatech.in\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Cloud Functions\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/prwatech.in\/blog\/#website\",\"url\":\"https:\/\/prwatech.in\/blog\/\",\"name\":\"Prwatech\",\"description\":\"Share Ideas, Start Something Good.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/prwatech.in\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3\",\"name\":\"Prwatech\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/prwatech.in\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c00bafc1b04045f31eda917de39891456c44fa47c092b9bb6be0f860a3a30a2f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c00bafc1b04045f31eda917de39891456c44fa47c092b9bb6be0f860a3a30a2f?s=96&d=mm&r=g\",\"caption\":\"Prwatech\"},\"url\":\"https:\/\/prwatech.in\/blog\/author\/prwatech123\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Cloud Functions Quickstart - Prwatech","description":"Master Cloud Functions Quickstart with Prwatech - Dive deep with our expert instructors and comprehensive curriculum.","robots":{"index":"noindex","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"og_locale":"en_US","og_type":"article","og_title":"Cloud Functions Quickstart - Prwatech","og_description":"Master Cloud Functions Quickstart with Prwatech - Dive deep with our expert instructors and comprehensive curriculum.","og_url":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/bigquery\/cloud-functions\/","og_site_name":"Prwatech","article_publisher":"https:\/\/www.facebook.com\/prwatech.in\/","article_published_time":"2021-05-31T09:59:41+00:00","article_modified_time":"2024-03-19T10:58:33+00:00","og_image":[{"url":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-668.png","type":"","width":"","height":""}],"author":"Prwatech","twitter_card":"summary_large_image","twitter_creator":"@Eduprwatech","twitter_site":"@Eduprwatech","twitter_misc":{"Written by":"Prwatech","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/bigquery\/cloud-functions\/","url":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/bigquery\/cloud-functions\/","name":"Cloud Functions Quickstart - Prwatech","isPartOf":{"@id":"https:\/\/prwatech.in\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/bigquery\/cloud-functions\/#primaryimage"},"image":{"@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/bigquery\/cloud-functions\/#primaryimage"},"thumbnailUrl":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-668.png","datePublished":"2021-05-31T09:59:41+00:00","dateModified":"2024-03-19T10:58:33+00:00","author":{"@id":"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3"},"description":"Master Cloud Functions Quickstart with Prwatech - Dive deep with our expert instructors and comprehensive curriculum.","breadcrumb":{"@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/bigquery\/cloud-functions\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/prwatech.in\/blog\/google-cloud-platform\/bigquery\/cloud-functions\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/bigquery\/cloud-functions\/#primaryimage","url":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-668.png","contentUrl":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-668.png","width":270,"height":304},{"@type":"BreadcrumbList","@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/bigquery\/cloud-functions\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/prwatech.in\/blog\/"},{"@type":"ListItem","position":2,"name":"Cloud Functions"}]},{"@type":"WebSite","@id":"https:\/\/prwatech.in\/blog\/#website","url":"https:\/\/prwatech.in\/blog\/","name":"Prwatech","description":"Share Ideas, Start Something Good.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/prwatech.in\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3","name":"Prwatech","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/prwatech.in\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c00bafc1b04045f31eda917de39891456c44fa47c092b9bb6be0f860a3a30a2f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c00bafc1b04045f31eda917de39891456c44fa47c092b9bb6be0f860a3a30a2f?s=96&d=mm&r=g","caption":"Prwatech"},"url":"https:\/\/prwatech.in\/blog\/author\/prwatech123\/"}]}},"_links":{"self":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts\/9413","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/comments?post=9413"}],"version-history":[{"count":4,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts\/9413\/revisions"}],"predecessor-version":[{"id":10954,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts\/9413\/revisions\/10954"}],"wp:attachment":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/media?parent=9413"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/categories?post=9413"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/tags?post=9413"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}