Build exciting web apps following step-by-step instructions and video examples.
Purchase of the print or Kindle book includes a free eBook in PDF format.
Key FeaturesExplore and build complete, easy-to-follow web projects using Blazor. Each project includes a video example too.Test your skills in building a weather app, an expense tracker, and a Kanban board with real-world applications.Develop a deeper understanding on how to work with Blazor WebAssembly without spending too much time focusing on the theory.Book DescriptionBlazor 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#.
What you will learnDiscover the power of the C# language for both server-side and client-side web developmentBuild your first Blazor WebAssembly application with the Blazor WebAssembly App project templateLearn how to debug a Blazor WebAssembly app, and use ahead-of-time compilation before deploying it on Microsoft's cloud platformUse templated components and the Razor class library to build and share a modal dialog boxLearn how to use JavaScript with Blazor WebAssemblyBuild a progressive web app (PWA) to enable native app-like performance and speedSecure a Blazor WebAssembly app using Azure Active DirectoryGain experience with ASP.NET Web APIs by building a task manager appWho this book is forThis book is for .NET web developers who want to leverage the power of .NET and C# to write single-page web applications using Blazor WebAssembly without using JavaScript frameworks. To get started with this book, you'll need at least beginner-level knowledge of the C# language, .NET framework, Microsoft Visual Studio, and web development concepts.
Table of ContentsIntroduction to Blazor WebAssemblyBuilding Your First Blazor WebAssembly ApplicationDebugging and Deploying a Blazor WebAssembly AppBuilding a Modal Dialog Using Templated ComponentsBuilding a Local Storage Service Using JavaScript Interoperability (JS Interop)Building a Weather App as a Progressive Web App (PWA)Building a Shopping Cart Using Application State(N.B. Please use the Look Inside option to see further chapters)
This is a book focusing on the modern Web development on the Microsoft platform involving WASM which has recently gained a lot of traction. It seems to me that this technology is here to stay and evolve. What influenced me to buy the book in particular is that it is a second edition so it has to be very up-to-date, and ironically, the foreword by Scott Hanselman who I value as a technical leader in the technical community. The book is well structured in terms of chapters, and at the same time, beyond the development environment setup, in a non-demanding order to consume which is appealing to me. However, I followed the book from the setup steps and a basic project creation into more advanced developmental tasks exactly as outlined. I feel it will be easier to revisit any sections later. What else I liked is that each chapter ends with questions and next steps to explore which I find very enriching and helping to solidify the material learned. This is exactly the way I learn new technical skills. I believe the author provided enough variety of the hands-on projects to help grasp the essentials of Blazor, and serve a starting point for bigger projects. Overall, it is a joy and a much more pleasant experience to use C# than JavaScript, speaking of, the book lifts above the use of C# at several places by going into JavaScript which is typically necessary in many web apps. My rating is a five out of five because I found the book beyond helpful. The author addressed the relevant topics in a digestible by general technical audience audience manner. Beyond that, I wanted to say that Packt provides a Discord space to discuss the book further which is very nice.
Really practical examples, while concepts are only explained simply. Not good for web dev new comers, but practical for those who're already familiar with web dev.