Mastering Blazor WebAssembly: A step-by-step guide to developing advanced single-page applications with Blazor WebAssembly

Mozaffar, Ahmad

  • 出版商: Packt Publishing
  • 出版日期: 2023-08-18
  • 售價: $1,650
  • 貴賓價: 9.5$1,568
  • 語言: 英文
  • 頁數: 370
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1803235101
  • ISBN-13: 9781803235103
  • 相關分類: WebAssembly
  • 立即出貨 (庫存=1)

商品描述

Leverage the power of WebAssembly to develop cutting-edge frontend web applications systematically with this comprehensive guide
Purchase of the print or Kindle book includes a free PDF eBook

Key Features

  • Explore Blazor WebAssembly through a systematic, step-by-step approach
  • Discover the concepts essential to develop and deploy real-world SPAs
  • Create robust components and develop efficient unit tests by using the bUnit framework

Book Description

Blazor WebAssembly is a revolutionary technology in software development that enables you to develop web applications with a rich user interface using C# without JavaScript. It can be run natively in the browser and soon on mobile apps with .NET MAUI, making it a superweapon in the .NET developer’s toolbox. This capability has opened the doors for the JavaScript community to have a stable framework to build single page applications (SPAs) maintained by Microsoft and driven by the community.
Mastering Blazor WebAssembly is a complete resource that teaches you everything you need to build client-side web applications using C# & .NET 7.0. Throughout this book, you’ll discover the anatomy of a Blazor WebAssembly project, along with the build, style, and structure of the components. You’ll implement forms to catch user input and collect data, as well as explore the topics of navigating between the pages in depth. The chapters will guide you through handling complex scenarios like RenderTrees, writing efficient unit tests, using variant security methods, and publishing the app to different providers, all in a practical manner.
By the end of this book, you’ll have the skills necessary to build web apps with Blazor WebAssembly, along with the basics for a future in mobile development with .NET MAUI and Blazor.

What you will learn

  • Develop basic and advanced components in Blazor to meet your application's specific requirements
  • Utilize Blazor forms to efficiently collect user input and handle data validation
  • Enhance your app with JavaScript logic, integrating it smoothly within your Blazor application
  • Call RESTful APIs in Blazor, enabling seamless integration with external services
  • Explore advanced identity and security techniques in Blazor ensuring robust authentication and authorization mechanisms
  • Build reliable apps by implementing unit testing and effective error handling strategies

Who this book is for

This book is for existing .NET developers eager to leverage their C# skills to build single page applications without relying on JavaScript frameworks, as well as for JavaScript developers curious about Blazor's capabilities and its user-friendly approach to web development. Tech enthusiasts seeking an in-depth understanding of Blazor's inner workings will also find this guide useful for discovering and mastering Blazor's powerful and intuitive web development capabilities.

商品描述(中文翻譯)

利用WebAssembly的強大功能,以系統化的方式開發尖端的前端網絡應用程式,本全面指南將助你一臂之力。
購買印刷版或Kindle電子書,即可免費獲得PDF電子書。

主要特點:

- 通過系統化、逐步的方法探索Blazor WebAssembly
- 探索開發和部署實際單頁應用程式所必需的概念
- 使用bUnit框架創建強大的組件並開發高效的單元測試

書籍描述:

Blazor WebAssembly是軟體開發中的一項革命性技術,它使你能夠使用C#而無需JavaScript來開發具有豐富用戶界面的網絡應用程式。它可以在瀏覽器中本地運行,並很快將在.NET MAUI的移動應用程式上運行,使其成為.NET開發者工具箱中的超級武器。這種能力為JavaScript社區提供了一個穩定的框架,用於構建由Microsoft維護並由社區推動的單頁應用程式(SPA)。

《精通Blazor WebAssembly》是一本完整的資源,教你使用C#和.NET 7.0構建客戶端網絡應用程式所需的一切。在整本書中,你將了解Blazor WebAssembly項目的結構、構建、樣式和組件的結構。你將實現表單來捕獲用戶輸入和收集數據,並深入探討頁面之間的導航等主題。本書的章節將以實用的方式指導你處理複雜的場景,如RenderTrees、編寫高效的單元測試、使用不同的安全方法以及將應用程式發布到不同的提供商。

通過閱讀本書,你將具備使用Blazor WebAssembly構建網絡應用程式的技能,以及未來在.NET MAUI和Blazor中進行移動開發的基礎知識。

你將學到什麼:

- 在Blazor中開發基本和高級組件,以滿足應用程式的特定需求
- 利用Blazor表單高效地收集用戶輸入並處理數據驗證
- 通過JavaScript邏輯增強應用程式,在Blazor應用程式中無縫集成
- 在Blazor中調用RESTful API,實現與外部服務的無縫集成
- 探索Blazor中的高級身份驗證和安全技術,確保強大的身份驗證和授權機制
- 通過實施單元測試和有效的錯誤處理策略來構建可靠的應用程式

本書適合對.NET開發者,渴望利用他們的C#技能構建單頁應用程式而不依賴於JavaScript框架的人,以及對Blazor的能力和其用戶友好的網絡開發方法感興趣的JavaScript開發者。對於尋求深入了解Blazor內部運作的技術愛好者,本指南也將對他們發現和掌握Blazor強大而直觀的網絡開發能力非常有用。

目錄大綱

  1. Understanding the Anatomy of a Blazor WebAssembly Project
  2. Components in Blazor
  3. Developing Advanced Components in Blazor
  4. Navigation and Routing
  5. Capturing User Input with Forms and Validation
  6. Consuming JavaScript in Blazor
  7. Managing Application State
  8. Consuming Web APIs from Blazor WebAssembly
  9. Authenticating and Authorizing Users in Blazor
  10. Handling Errors in Blazor WebAssembly
  11. Giving Your App a Speed Boost
  12. RenderTree in Blazor
  13. Testing Blazor WebAssembly Apps
  14. Publishing Blazor WebAssembly Apps
  15. What’s Next?

目錄大綱(中文翻譯)

理解 Blazor WebAssembly 專案的結構
Blazor 中的元件
在 Blazor 中開發進階元件
導航和路由
使用表單和驗證捕獲使用者輸入
在 Blazor 中使用 JavaScript
管理應用程式狀態
從 Blazor WebAssembly 使用 Web API
在 Blazor 中進行使用者身份驗證和授權
處理 Blazor WebAssembly 中的錯誤
為您的應用程式提供加速
Blazor 中的 RenderTree
測試 Blazor WebAssembly 應用程式
發佈 Blazor WebAssembly 應用程式
下一步是什麼?