{"id":61877,"date":"2021-06-24T06:00:43","date_gmt":"2021-06-24T14:00:43","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/devops\/?p=61877"},"modified":"2021-06-22T07:01:28","modified_gmt":"2021-06-22T15:01:28","slug":"how-to-create-your-personal-blog-with-gatsby-azure-static-web-apps-azure-tips-tricks","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/devops\/how-to-create-your-personal-blog-with-gatsby-azure-static-web-apps-azure-tips-tricks\/","title":{"rendered":"How to create your personal blog with Gatsby &#038; Azure Static Web Apps &#8211;  Azure Tips &#038; Tricks"},"content":{"rendered":"<p>Recently the Developer relations came together to create a <a href=\"https:\/\/aka.ms\/StaticWebAppsTips\">video series<\/a> to get all the essential knowledge to move your project forward with Static Web Apps.  This series provides you with <a href=\"https:\/\/aka.ms\/StaticWebAppsTips\">16 different cookbooks<\/a> to begin building applications using Azure Static Web Apps.  You&#8217;ll learn what the <a href=\"https:\/\/youtu.be\/w-tLZjO6XMc\">SWA service is<\/a>, <a href=\"https:\/\/youtu.be\/l3SBq7L13Mk?list=PLlrxD0HtieHgMPeBaDQFx9yNuFxx6S1VG\">what tools you&#8217;ll need to work with it<\/a>,  <a href=\"https:\/\/youtu.be\/A-eALdCkpTw\">how CI\/CD fits in<\/a>, <a href=\"https:\/\/aka.ms\/StaticWebAppsTips\">and much more<\/a>.<\/p>\n<p><a href=\"https:\/\/cda.ms\/2c9\">Azure Static Web Apps<\/a> or SWA is a modern web app service that offers streamlined full-stack development from source code to global high availability.<\/p>\n<p>Benefits include:<\/p>\n<ul>\n<li>Productivity from local development to GitHub and Azure DevOps native workflows for CI\/CD <br><\/li>\n<li>Managed global availability and reliability for static content<br><\/li>\n<li>Dynamic scale for serverless APIs like Azure Functions<br><\/li>\n<li>Streamlined management including custom domain configuration, authentication, and authorization<br><\/li>\n<li>A seamless developer experience and CI\/CD<br><\/li>\n<li>Tailored developer experience that includes integration into Visual Studio Code with an extension<br><\/li>\n<\/ul>\n<p>In this video, I show you how to get started publishing your own personal blog to SWA. Static site generators like Gatsby provide you with a framework for your static content without requiring you to write all of the code.  You&#8217;ll get a professional look and feel without the overhead of writing the React or CSS associated with your site.  With Gatsby you can put your main site content in Markdown and then watch as it renders your site into all the HTML and JavaScript needed.<\/p>\n<p><a href=\"https:\/\/cda.ms\/2c1\">Azure Static Web Apps<\/a> allows you to build modern web applications that automatically publish to the web as your code changes. You can rub some DevOps on your Gatsby by utilizing the built in CI\/CD process in the SWA service.  You can provide your GitHub login or implement <a href=\"https:\/\/cda.ms\/2c6\">Azure DevOps<\/a> to deploy your blog to the SWA service.  You can create your SWA deployment with <a href=\"https:\/\/cda.ms\/2c2\">Visual Studio Code<\/a>, <a href=\"https:\/\/cda.ms\/2c3\">the Azure portal<\/a>, or even <a href=\"https:\/\/cda.ms\/2c4\">Azure CLI<\/a>.<\/p>\n<p><iframe title=\"How to create your personal blog with Gatsby &amp; Azure Static Web Apps [5 of 22] | Azure Tips &amp; Tricks\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/IZbcpUIke8s?list=PLlrxD0HtieHgMPeBaDQFx9yNuFxx6S1VG\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<p>I&#8217;ll walk you through the following:<\/p>\n<ul>\n<li><a href=\"https:\/\/youtu.be\/IZbcpUIke8s?list=PLlrxD0HtieHgMPeBaDQFx9yNuFxx6S1VG&amp;t=26\">00:00:26 &#8211; How to get started with GatsbyJS<\/a><br><\/li>\n<li><a href=\"https:\/\/youtu.be\/IZbcpUIke8s?list=PLlrxD0HtieHgMPeBaDQFx9yNuFxx6S1VG&amp;t=70\">00:01:10 &#8211; Clone your code from GitHub<\/a><br><\/li>\n<li><a href=\"https:\/\/youtu.be\/IZbcpUIke8s?list=PLlrxD0HtieHgMPeBaDQFx9yNuFxx6S1VG&amp;t=144\">00:2:24 &#8211; Build your blog with npm<\/a><br><\/li>\n<li><a href=\"https:\/\/youtu.be\/IZbcpUIke8s?list=PLlrxD0HtieHgMPeBaDQFx9yNuFxx6S1VG&amp;t=172\">00:02:52 &#8211; Previewing your blog locally<\/a><br><\/li>\n<li><a href=\"https:\/\/youtu.be\/IZbcpUIke8s?list=PLlrxD0HtieHgMPeBaDQFx9yNuFxx6S1VG&amp;t=219\">00:03:39 &#8211; Create your SWA in the Azure Portal<\/a><br><\/li>\n<li><a href=\"https:\/\/youtu.be\/IZbcpUIke8s?list=PLlrxD0HtieHgMPeBaDQFx9yNuFxx6S1VG&amp;t=371\">00:06:11 &#8211; Review how GitHub actions deployed your blog<\/a><br><\/li>\n<\/ul>\n<p>Want to get started?  Here are some links you can follow in order to build your own blog using SWA:<\/p>\n<p><a href=\"https:\/\/github.com\/gatsbyjs\/gatsby-starter-blog\">Gatsby Starter Blog template on GitHub<\/a><br>\n<a href=\"https:\/\/cda.ms\/2c0\">Microsoft Learn: Azure Static Web Apps<\/a><br>\n<a href=\"https:\/\/cda.ms\/2c1\">Azure Static Web Apps documentation<\/a><br>\n<a href=\"https:\/\/cda.ms\/2c2\">Quickstart: Building your first static site with Azure Static Web Apps<\/a><br>\n<a href=\"https:\/\/cda.ms\/2c3\">Quickstart: Building your first static site in the Azure portal<\/a><br>\n<a href=\"https:\/\/cda.ms\/2c5\">Quickstart: Building your first static site using the Azure CLI<\/a><br>\n<a href=\"https:\/\/cda.ms\/2c8\">Set up local development for Azure Static Web Apps<\/a><br>\n<a href=\"https:\/\/cda.ms\/2cb\">Tutorial: Publish Azure Static Web Apps with Azure DevOps<\/a><\/p>\n<p>Now that you&#8217;ve got this video and all the documentation, a template, and the docs to build your website, get to work!  Send us what you&#8217;ve built using the SWA service in the comments below!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This series provides you with 16 different cookbooks to begin building applications using Azure Static Web Apps. You\u2019ll learn what the SWA service is, what tools you\u2019ll need to work with it, how CI\/CD fits in, and much more.<\/p>\n","protected":false},"author":39313,"featured_media":61878,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[224],"tags":[],"class_list":["post-61877","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-azure"],"acf":[],"blog_post_summary":"<p>This series provides you with 16 different cookbooks to begin building applications using Azure Static Web Apps. You\u2019ll learn what the SWA service is, what tools you\u2019ll need to work with it, how CI\/CD fits in, and much more.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts\/61877","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/users\/39313"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/comments?post=61877"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts\/61877\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/media\/61878"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/media?parent=61877"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/categories?post=61877"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/tags?post=61877"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}