http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-2.xsd
use practical projects to start building web apps with .NET 7, Blazor WebAssembly, and C#
1 online resource (438 pages) : illustrations
Blazor WebAssembly helps developers build web applications without the need for JavaScript, plugins, or add-ons. With its continued growth in popularity, getting started with Blazor now can open doors to new career paths and exciting projects - and Blazor WebAssembly by Example will make your first steps easier. This is a project-based guide that will teach you how to build single-page web applications with Blazor, focusing heavily on the practical over the theoretical by providing detailed step-by-step instructions for each project. The author also includes a video for each project showing her following the step-by-step instructions, so readers can use them if they're unsure about any particular step. In this updated edition, you'll start by building simple standalone web applications and gradually progress to developing more advanced hosted web applications with SQL Server backends. Each project will cover a different aspect of the Blazor WebAssembly ecosystem, such as Razor components, JavaScript interop, security, event handling, debugging on the client, application state, and dependency injection. The book's projects get more challenging as you progress, but you don't have to complete them in order, which makes this book a valuable resource for beginners as well as those who just want to dip into specific topics. By the end of this book, you will have experience and lots of know-how on how to build a wide variety of single-page web applications with .NET, Blazor WebAssembly, and C#.
Cover -- Copyright -- Foreword -- Contributors -- Table of Contents -- Preface -- Chapter 1: Introduction to Blazor WebAssembly -- Benefits of using the Blazor framework -- .NET Framework -- Open source -- SPA framework -- Razor syntax -- Awesome tooling -- Supported by Microsoft -- Hosting models -- Blazor Server -- Advantages of Blazor Server -- Disadvantages of Blazor Server -- Blazor Hybrid -- Advantages of Blazor Hybrid -- Disadvantages of Blazor Hybrid -- Blazor WebAssembly -- Advantages of Blazor WebAssembly -- Disadvantages of Blazor WebAssembly -- Hosting model differences
What is WebAssembly? -- WebAssembly goals -- WebAssembly support -- Setting up your PC -- Installing Microsoft Visual Studio Community Edition -- Installing .NET 7.0 -- Installing Microsoft SQL Server Express -- Create a Microsoft Azure account -- Summary -- Questions -- Further reading -- Chapter 2: Building Your First Blazor WebAssembly Application -- Creating the Demo Blazor WebAssembly Project Technical Requirements -- Razor components -- Using components -- Parameters -- Required parameters -- Query strings -- Naming components -- Component life cycle -- Component structure -- Directives
Markup -- Code block -- Routing -- Route parameters -- Optional route parameters -- Catch-all route parameters -- Route constraints -- Razor syntax -- Inline expressions -- Control structures -- Conditionals -- Loops -- Hot Reload -- Creating the Demo Blazor WebAssembly project -- Project overview -- Getting started with the project -- Running the Demo project -- Examining the Demo project's structure -- The Properties folder -- The wwwroot folder -- The App component -- The Shared folder -- The Pages folder -- The Client folder -- The _Imports.razor file -- Examining the shared Razor components
The MainLayout component -- The NavMenu component -- The SurveyPrompt component -- Examining the routable Razor components -- The Index component -- The Counter component -- The FetchData component -- Using a component -- Modifying a component -- Adding a parameter to a component -- Using a parameter with an attribute -- Adding a route parameter -- Using partial classes to separate markup from code -- Summary -- Questions -- Further reading -- Chapter 3: Debugging and Deploying a Blazor WebAssembly App -- Technical requirements -- Debugging a Blazor WebAssembly.app -- Debugging in Visual Studio
Debugging in the browser -- Understanding logging -- Understanding log levels -- Setting the minimum log level -- Handling exceptions -- Setting error boundaries -- Creating a custom error component -- Using ahead-of-time (AOT) compilation -- Deploying a Blazor WebAssembly app to Microsoft Azure -- Creating the "guess the number" project -- Project overview -- Getting started with the project -- Adding a Game component -- Adding the code -- Adding a style sheet -- Setting up and playing the game -- Adding logging -- Debugging in Visual Studio -- Updating the code -- Debugging in the browser
Toi B. Wright ; foreword by Scott Hanselman.
Birmingham : Packt Publishing, Limited,c2023