Book description
Build robust, scalable web applications using ASP.NET Core 8, Angular, and Entity Framework Core Purchase of the print or Kindle book includes a free PDF eBook
Key Features
- Combine ASP.NET Core and Angular to build highly versatile web applications
- Create a production-ready Single-Page Application (SPA) or Progressive Web Application (PWA)
- Adopt a full-stack approach to handle data management, API documentation, Web APIs, end-to-end testing, security, and deployment
Book Description
If you want to learn how to use ASP.NET Core with Angular effectively, this hands-on guide is for you.
Improve the way you create, debug, and deploy web applications while keeping up to date with the latest developments in .NET 8 and modern Angular, including .NET Minimal APIs and the new Angular standalone API defaults.
You’ll begin by setting up SQL Server 2022 and building a data model with Entity Framework Core. You’ll progress to fetching and displaying data, handling user input with Angular reactive forms, and implementing front-end and back-end validators for maximum effect. After that, you will perform advanced debugging and explore unit testing features with xUnit for .NET, and Jasmine and Karma for Angular. You’ll use Identity API endpoints in ASP.NET Core and functional route guards in Angular to add authentication and authorization to your apps. Finally, you’ll learn how to deploy to Windows, Linux, and Azure.
By the end of this book, you will understand how to tie together the front-end and back-end to build and deploy secure and robust web applications.
What you will learn
- Explore the new Angular and ASP.NET Core template with Visual Studio 2022
- Use modern interfaces and patterns such as the HTML5 pushState API, webhooks, and UI data bindings
- Add real-time capabilities to Angular apps with SignalR and gRPC
- Implement authentication and authorization using JWTs
- Perform DBMS structured logging using providers such as SeriLog
- Convert a standard web application to a progressive web application (PWA)
- Deploy an Angular app to Azure Static Web Apps
- Add GraphQL support to back-end and front-end using HotChocolate and Apollo Angular
Who this book is for
This book is for developers who have some familiarity with ASP.NET Core and Angular and want to learn how to use them effectively together.
Table of contents
- Preface
- Introducing ASP.NET and Angular
- Getting Ready
- Looking Around
- Front-End and Back-End Interactions
-
Data Model with Entity Framework Core
- Technical requirements
- The WorldCities web app
- The data source
- The data model
- Creating the entities
- Getting a SQL Server instance
- Creating the database using Code-First
- Populating the database
- Entity controllers
- Summary
- Suggested topics
- References
- Fetching and Displaying Data
- Forms and Data Validation
- Code Tweaks and Data Services
- Back-End and Front-End Debugging
- ASP.NET Core and Angular Unit Testing
-
Authentication and Authorization
- Technical requirements
- To auth, or not to auth?
- Proprietary auth with ASP.NET Core
- Updating the database
- Implementing authentication in Angular
- Finishing touches
- Identity API endpoints
- Summary
- Suggested topics
- References
-
Progressive Web Apps
- Technical requirements
- PWA distinctive features
- Implementing the PWA requirements
- Handling the offline status
- Testing the PWA capabilities
- Summary
- Suggested topics
- References
- Beyond REST – Web API with GraphQL
- Real-Time Updates with SignalR
-
Windows, Linux, and Azure Deployment
- Technical requirements
- Getting ready for production
- Windows deployment
- Linux deployment
- Azure App Service deployment
- Summary
- Suggested topics
- References
- Other Books You May Enjoy
- Index
Product information
- Title: ASP.NET Core 8 and Angular - Sixth Edition
- Author(s):
- Release date: February 2024
- Publisher(s): Packt Publishing
- ISBN: 9781805129936
You might also like
book
ASP.NET Core 6 and Angular - Fifth Edition
Design, build and deploy robust web applications using ASP.NET 6, Angular 13, and Entity Framework Core …
book
ASP.NET Core in Action, Third Edition
Build professional-grade full-stack web applications using C# and ASP.NET Core. In ASP.NET Core in Action, Third …
book
ASP.NET Core in Action, Second Edition
Fully updated to ASP.NET 5.0, ASP.NET Core in Action, Second Edition is a hands-on primer to …
video
The Complete Guide to ASP.NET Core MVC (.NET 6)
This is a beginner to an advanced-level course on .NET 6 that will take you from …