Skip to content

PacktPublishing/Mastering-Blazor-WebAssembly

Repository files navigation

Mastering Blazor WebAssembly

Mastering Blazor WebAssembly

This is the code repository for Mastering Blazor WebAssembly, published by Packt.

Step by Step guide to developing an advanced Single Page Application with Blazor WebAssembly

Compatibility Note

The content of the book was written on top of .NET 7.0. With the release of .NET 8.0 the book is still valid as there are minor changes for WebAssembly in .NET 8.0 and you can check them out through the following blog: Mastering Blazor WebAssembly .NET 8.0 Notes

What is this book about?

Blazor WebAssembly has become the trend in the world of software development, as a revolutionary technology that allows you to develop rich user interface web applications using C# without JavaScript. Blazor WebAssembly can also be run natively in the browser & mobile apps shortly with .NET MAUI; this adds a superweapon in the toolbox for .NET developers and open the doors for the JavaScript community to have a stable framework to build Single Page Applications, maintained by Microsoft and driven by the community.

This book covers the following exciting features:

  • Discover the structure and the anatomy of a Blazor project
  • Develop basic and advanced components to meet your app needs
  • Find out how to navigate within the app
  • Learn how to use forms to collect user input
  • Discover how to add some JavaScript logic to your app

If you feel this book is for you, get your copy today!

https://www.packtpub.com/

Instructions and Navigations

All of the code is organized into folders. For example, Chapter06.

The code will look like the following:

<nav class="navbar navbar-expand-lg navbar-light bg-light">
    ...
    <div class="d-flex">
      <button class="btn btn-outline-primary">
        Login</button>
    </div>
  </div>
</nav>

Following is what you need for this book: This book targets existing .NET developers who are excited to start their journey with developing Single Page applications using their own C# skills without learning JS frameworks, for JS developers who heard about Blazor and want to discover its superpower and its easiness for web development, and for every geek who would like to discover and learn how things work under the hood step by step.

With the following software and hardware list you can run all code files present in the book (Chapter 1-15).

Software and Hardware List

Chapter Software required OS required
1-15 Visual Studio 2022 Windows, Mac OS X, and Linux (Any)
1-15 Visual Studio Code Windows, Mac OS X, and Linux (Any)
1-15 .NET 7.0 Windows, Mac OS X, and Linux (Any)

We also provide a PDF file that has color images of the screenshots/diagrams used in this book. [Click here to download it](Graphics Bundle Link).

Related products

Errata

  • Page 12, Figure 1.7: 03- Component A uses ILogginService should be 03- Component A uses LoggingService.
  • Page 97, first code line 7, Page: $@_book?.Price should be Price: $@_book?.Price
  • Page 130, the last line of code should be
    validationErrorMessage = "Invalid time value";
    result = TimeOnly.FromDateTime(DateTime.Now);
    return false;
    

Get to Know the Author

Ahmad Mozaffar is a senior software engineer, cloud developer, and trainer who is currently working at ContraForce as a senior full-stack engineer responsible for developing SaaS platforms using Blazor, Azure Serverless, and other modern technologies. His passion for software development, especially with .NET and Azure started at a very early age. He loves teaching people about software using Blazor, Azure, and other Microsoft technologies through his YouTube channel, AK Academy, or writing articles on multiple platforms that reached more than 400K readers. Originally from Syria, the author has lived in multiple cities around the world and is currently living in the most modern and inspiring city of Dubai.

About

Mastering Blazor WebAssembly, Published by Packt

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published