ASP.NET Core 5 and React : Full-stack web development using .NET 5, React 17, and TypeScript 4, 2/e (Paperback)

Rippon, Carl

  • 出版商: Packt Publishing
  • 出版日期: 2021-01-08
  • 售價: $1,500
  • 貴賓價: 9.5$1,425
  • 語言: 英文
  • 頁數: 568
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 180020616X
  • ISBN-13: 9781800206168
  • 相關分類: .NETASP.NETReactJavaScriptTypeScript
  • 立即出貨 (庫存=1)




Build fully functional, cloud-ready, and professional web applications using the latest features in the .NET 5 framework and React.js with Microsoft Azure

Key Features

  • Explore the new features of .NET 5 with this updated edition of ASP.NET Core 5 and React
  • Discover strategies for adopting a full-stack development approach, clean architecture techniques, and development best practices
  • Learn how to manage data, design and package applications, and secure your web apps

Book Description

Microsoft's .NET framework is a robust server-side framework, now even more powerful thanks to the recent unification of the Microsoft ecosystem with the .NET 5 framework. This updated second edition addresses these changes in the .NET framework and the latest release of React.

The book starts by taking you through React and TypeScript components for building an intuitive single-page application and then shows you how to design scalable REST APIs that can integrate with a React-based frontend. Next, you'll get to grips with the latest features, popular patterns, and tools available in the React ecosystem, including function-based components, React Router, and Redux. As you progress through the chapters, you'll learn how to use React with TypeScript to make the frontend robust and maintainable and cover key ASP.NET 5 features such as API controllers, attribute routing, and model binding to build a sturdy backend. In addition to this, you'll explore API security with ASP.NET 5 identity and authorization policies and write reliable unit tests using both .NET and React, before deploying your app on Azure.

By the end of this book, you'll have gained the knowledge you need to enhance your C# and JavaScript skills and build full-stack, production-ready applications with ASP.NET 5 and React.

What you will learn

  • Build RESTful APIs with .NET 5 using API controllers
  • Secure REST APIs with identity and authorization policies
  • Create strongly typed, interactive, and function-based React components using Hooks
  • Understand how to style React components using Emotion.js
  • Perform client-side state management with Redux
  • Run a range of automated tests on the frontend and backend
  • Implement continuous integration and continuous delivery (CI/CD) processes in Azure using Azure DevOps

Who this book is for

If you're a web developer looking to get up to speed with full-stack web application development with .NET Core and React, this book is for you. Although the book does not assume any knowledge of React, a basic understanding of .NET Core will help you to get to grips with the concepts covered.


使用最新的.NET 5框架和React.js與Microsoft Azure建立功能完整、雲端準備和專業的網頁應用程式


- 透過這本更新的ASP.NET Core 5和React的第二版,探索.NET 5的新功能
- 探索全端開發方法、乾淨架構技術和開發最佳實踐策略
- 學習如何管理資料、設計和打包應用程式,以及保護您的網頁應用程式


微軟的.NET框架是一個強大的伺服器端框架,現在更加強大,因為最近將微軟生態系統與.NET 5框架統一起來。這本更新的第二版解釋了.NET框架的這些變化以及最新版本的React。

本書首先介紹了使用React和TypeScript組件建立直觀單頁應用程式的方法,然後展示了如何設計可與基於React的前端整合的可擴展REST API。接下來,您將瞭解React生態系統中的最新功能、流行模式和工具,包括基於函數的組件、React Router和Redux。隨著章節的進展,您將學習如何使用React和TypeScript使前端更加強大和可維護,並涵蓋關鍵的ASP.NET 5功能,例如API控制器、屬性路由和模型繫結,以構建堅固的後端。此外,您還將探索使用ASP.NET 5身份驗證和授權策略實現API安全性,並使用.NET和React編寫可靠的單元測試,然後在Azure上部署應用程式。

通過閱讀本書,您將獲得提升C#和JavaScript技能的知識,並使用ASP.NET 5和React構建全端、生產就緒的應用程式。


- 使用API控制器在.NET 5中構建RESTful API
- 使用身份驗證和授權策略保護RESTful API
- 使用Hooks創建強類型、互動和基於函數的React組件
- 使用Emotion.js設計React組件的樣式
- 使用Redux進行客戶端狀態管理
- 在前端和後端執行各種自動化測試
- 使用Azure DevOps在Azure中實施持續整合和持續交付(CI/CD)流程

本書適合對全端網頁應用程式開發有興趣的網頁開發人員,無需對React有任何了解,但基本的.NET Core知識將有助於理解所涵蓋的概念。


Carl Rippon has been involved in the software industry for over 20 years, developing a complex line of business applications across various sectors. He has spent the last 9 years building single-page applications using a wide range of JavaScript technologies, including Angular, ReactJS, and TypeScript. Carl has written over 150 blog posts on various technologies.


Carl Rippon在軟體業界擁有超過20年的經驗,開發過多個不同領域的複雜業務應用程式。他在過去的9年中,使用了多種JavaScript技術,包括Angular、ReactJS和TypeScript,來建立單頁應用程式。Carl已經撰寫了超過150篇關於各種技術的部落格文章。


Table of Contents

  1. Understanding the ASP.NET 5 React Template
  2. Creating Decoupled React and ASP.NET 5 Apps
  3. Getting Started with React and TypeScript
  4. Styling React Components with Emotion
  5. Routing with React Router
  6. Working with Forms
  7. Managing State with Redux
  8. Interacting with the Database with Dapper
  9. Creating REST API Endpoints
  10. Improving Performance and Scalability
  11. Securing the Backend
  12. Interacting with RESTful APIs
  13. Adding Automated Tests
  14. Configuring and Deploying to Azure
  15. Implementing CI and CD with Azure DevOps



  1. 了解 ASP.NET 5 React 模板

  2. 創建解耦的 React 和 ASP.NET 5 應用程式

  3. 使用 React 和 TypeScript 入門

  4. 使用 Emotion 為 React 組件添加樣式

  5. 使用 React Router 進行路由

  6. 處理表單

  7. 使用 Redux 管理狀態

  8. 使用 Dapper 與資料庫互動

  9. 創建 REST API 端點

  10. 提升性能和可擴展性

  11. 保護後端

  12. 與 RESTful API 互動

  13. 添加自動化測試

  14. 配置並部署到 Azure

  15. 使用 Azure DevOps 實現 CI 和 CD