Web Development with Blazor - Second Edition: An in-depth practical guide for .NET developers to build interactive UIs with C#
暫譯: Blazor 網頁開發 - 第二版:.NET 開發者構建互動式 UI 的深入實用指南(使用 C#)

Engström, Jimmy

買這商品的人也買了...

相關主題

商品描述

Develop modern web UIs with Blazor Server and Blazor WebAssembly

Key Features

• Create a production-ready Blazor application from start to finish
• Learn Blazor fundamentals, gain actionable insights, and discover best practices
• Find out how, when, and why to use Blazor Server and Blazor WebAssembly, as well as Blazor Hybrid

Book Description

Blazor is an essential tool if you want to build interactive web apps without JavaScript, but it has a learning curve. Updated with the latest code in .NET 7 and C# 11 and written by someone who adopted Blazor early, this book will help you overcome the challenges associated with being a beginner with Blazor and teach you the best coding practices.

You'll start by learning how to leverage the power of Blazor and exploring the full capabilities of both Blazor Server and Blazor WebAssembly. Then you'll move on to the practical part, centered around a sample project – a blog engine. You'll apply all your newfound knowledge about creating Blazor projects, the inner workings of Razor syntax, validating forms, and creating your own components.

This new edition also looks at source generators, dives deeper into Blazor WebAssembly with ahead-of-time, and includes a dedicated new chapter demonstrating how to move components of an existing JavaScript (Angular, React) or MVC-based website to Blazor or combine the two. You'll also see how to use Blazor (Hybrid) together with .NET MAUI to create cross-platform desktop and mobile applications.

When you reach the end of this book, you'll have the confidence you need to create and deploy production-ready Blazor applications, and you'll have a big-picture view of the Blazor landscape.

What you will learn

• Understand the different technologies that can be used with Blazor, such as Blazor Server, Blazor WebAssembly, and Blazor Hybrid
• Find out how to build simple and advanced Blazor components
• Explore the differences between Blazor Server and Blazor WebAssembly projects
• Discover how Minimal APIs work and build your own API
• Explore existing JavaScript libraries in Blazor and JavaScript interoperability
• Learn techniques to debug your Blazor Server and Blazor WebAssembly applications
• Test Blazor components using bUnit

Who this book is for

This book is for .NET web developers and software developers who want to use their existing C# skills to build interactive SPA applications running either inside the web browser using Blazor WebAssembly, or on the server using Blazor Server.

You'll need intermediate-level web-development skills, basic knowledge of C#, and prior exposure to .NET web development before you get started; the book will guide you through the rest.

商品描述(中文翻譯)

使用 Blazor Server 和 Blazor WebAssembly 開發現代網頁使用者介面

主要特點

• 從頭到尾創建一個可投入生產的 Blazor 應用程式

• 學習 Blazor 基礎知識,獲得可行的見解,並發現最佳實踐

• 了解何時、如何以及為什麼使用 Blazor Server 和 Blazor WebAssembly,以及 Blazor Hybrid

書籍描述

如果您想在不使用 JavaScript 的情況下構建互動式網頁應用程式,Blazor 是一個必不可少的工具,但它有一定的學習曲線。本書更新了最新的 .NET 7 和 C# 11 代碼,並由早期採用 Blazor 的作者撰寫,將幫助您克服作為 Blazor 初學者所面臨的挑戰,並教您最佳的編碼實踐。

您將首先學習如何利用 Blazor 的強大功能,探索 Blazor Server 和 Blazor WebAssembly 的全部能力。然後,您將進入實踐部分,圍繞一個示範專案——一個部落格引擎。您將應用所有新學到的知識,創建 Blazor 專案、了解 Razor 語法的內部運作、驗證表單以及創建自己的元件。

這個新版本還探討了源生成器,深入研究 Blazor WebAssembly 的即時編譯,並包含一個專門的新章節,演示如何將現有 JavaScript(Angular、React)或基於 MVC 的網站的元件移至 Blazor 或將兩者結合。您還將看到如何將 Blazor(Hybrid)與 .NET MAUI 一起使用,以創建跨平台的桌面和移動應用程式。

當您閱讀完本書時,您將擁有創建和部署可投入生產的 Blazor 應用程式所需的信心,並對 Blazor 的全貌有一個大致的了解。

您將學到什麼

• 了解可以與 Blazor 一起使用的不同技術,如 Blazor Server、Blazor WebAssembly 和 Blazor Hybrid

• 了解如何構建簡單和高級的 Blazor 元件

• 探索 Blazor Server 和 Blazor WebAssembly 專案之間的差異

• 發現 Minimal APIs 的運作方式並構建自己的 API

• 探索 Blazor 中現有的 JavaScript 函式庫及其 JavaScript 互操作性

• 學習調試 Blazor Server 和 Blazor WebAssembly 應用程式的技巧

• 使用 bUnit 測試 Blazor 元件

本書適合誰

本書適合 .NET 網頁開發人員和軟體開發人員,他們希望利用現有的 C# 技能來構建運行在網頁瀏覽器中的互動式單頁應用程式(SPA),或在伺服器上運行的 Blazor Server 應用程式。

在開始之前,您需要具備中級的網頁開發技能、基本的 C# 知識以及對 .NET 網頁開發的先前接觸;本書將指導您完成其餘部分。

目錄大綱

1. Hello Blazor
2. Creating Your First Blazor App
3. Managing State – Part 1
4. Understanding Basic Blazor Components
5. Creating Advanced Blazor Components
6. Building Forms with Validation
7. Creating an API
8. Authentication and Authorization
9. Sharing Code and Resources
10. JavaScript Interop
11. Managing State Part 2
12. Debugging the Code
13. Testing
14. Deploy to Production
15.  Moving from, or Combining, an Existing Site
16. Going Deeper into WebAssembly
17. Examining Source Generators
18. Visiting .NET MAUI
19. Where to Go from Here

目錄大綱(中文翻譯)

1. Hello Blazor

2. Creating Your First Blazor App

3. Managing State – Part 1

4. Understanding Basic Blazor Components

5. Creating Advanced Blazor Components

6. Building Forms with Validation

7. Creating an API

8. Authentication and Authorization

9. Sharing Code and Resources

10. JavaScript Interop

11. Managing State Part 2

12. Debugging the Code

13. Testing

14. Deploy to Production

15.  Moving from, or Combining, an Existing Site

16. Going Deeper into WebAssembly

17. Examining Source Generators

18. Visiting .NET MAUI

19. Where to Go from Here