Create rich and dynamic web applications built on the Azure cloud platform using static web development techniques built around Blazor WebAssembly, APIs, and Markup, whilst leveraging the paradigm commonly known as JAMstack.
This book starts with demonstrating you how to create an environment for deploying your first application. You will create a blogging application using an Azure Static Web App with a Blazor WebAssembly application and add dynamic content using both .NET Azure functions and the Data API Builder, before deploying from GitHub. You will then learn how to run and debug your application locally, both from inside of Visual Studio, as well as from the command line using a simple Static Web App CLI command. The book takes a deep dive into the CLI to allow you to emulate all the features available in the Azure Environment. You will go through the authentication and authoring options with your app to allow you to protect your editing and creation functionality in the blog application. Moving forward, you will understand how to add a custom domain to your application and discuss what options are available to you. Finally, the book will compare the differences between the free and paid hosting tiers for Azure Static Web Apps.
New in this second edition:
Using the latest .NET 9 runtime with C#12 syntax, including isolated Azure functions
Accessing data directly using the new Data API Builder functionality of Azure Static Web Apps
Deeper dive into the deployment functionality of both the SWA CLI and the `staticwebapp` command of the Azure CLI
Moving beyond the ‘out of the box’ GitHub workflow and creating our own, including infrastructure as code
What You Will Learn:
Create an Azure Static Web Apps using Blazor technology
Add dynamic content using connected Azure Functions and Data API Builder
Debug the application locally, emulating the features available to you in the Azure environment
Implement basic authentication from both Microsoft Entra ID and GitHub, as well as looking at custom authentication using openID and Auth0
Understand the workflow of the out of the box GitHub workflow, as well as how to create your own, including infrastructure as code.
Who This Book Is For:
Azure and Web developers looking to deploy feature rich applications to the cloud
Chapter 1: Setting Up Your Environment.- Chapter 2: Creating the Application.- Chapter 3: Creating the Static Web App.- Chapter 4: Simple Debugging.- Chapter 5: Retrieving Blog Data via the Api.- Chapter 6: Data API Builder (DAB).- Chapter 7: Displaying the Data.- Chapter 8: Static Web App Configuration.- Chapter 9: Authentication.- Chapter 10: Creating Blog Posts.- Chapter 11: Static Web App CLI Deeper – Running Locally.- Chapter 12: Testing in Azure.- Chapter 13: Custom Domains.- Chapter 14: Infrastructure as Code 1: Command Line Tools.- Chapter 15: Infrastructure as Code 2: Creating a Custom Workflow.- Chapter 16: Custom Authentication with Auth0.- Appendix A: Next Steps.
Height:
Width:
Spine:
Weight:0.00