Skip to content

PacktPublishing/ASP.NET-Core-8-and-Angular

Repository files navigation

ASP.NET Core 8 and Angular, Sixth Edition

This is the code repository for ASP.NET Core 8 and Angular, Sixth Edition, published by Packt.

Full-stack web development with ASP.NET Core 8 and Angular

The author of this book is - Valerio De Sanctis

About the book

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.

Key Takeaways

  • 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

Outline and Chapter Summary

This book covers everything from setting up ASP.NET Core 8 and modern Angular to deploying robust web applications in Windows, Linux, and Azure. Learn advanced techniques in data handling, API usage, UI design, and security

  1. Introducing ASP.NET and Angular
  2. Getting Ready
  3. Looking Around
  4. Front-End and Back-End Interactions
  5. Data Model with Entity Framework Core
  6. Fetching and Displaying Data
  7. Forms and Data Validation
  8. Code Tweaks and Data Services
  9. Back-End and Front-End Debugging
  10. ASP.NET Core and Angular Unit Testing
  11. Authentication and Authorization
  12. Progressive Web Apps
  13. Beyond REST – Web API with GraphQL
  14. Real-Time Updates with SignalR
  15. Windows, Linux, and Azure Deployment

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

With the following software and hardware list you can run all code files present in the book (Chapter number mention here).

Software and hardware list

These are the soft ware packages (and relevant version numbers) used to write this book and test the source code:

  • Visual Studio 2022 Community Edition 17.8.3 with the optional ASP.NET and web development workload (it can be selected from the Workloads section within the Visual Studio installer app)
  • Microsoft .NET 8 SDK 8.0.101
  • TypeScript 5.2
  • NuGet package manager 6.8.0
  • Node.js 20.10.0
  • Angular 17.0.3 For deployment on Windows:
  • Internet Information Services (IIS) (Windows Server)
  • ASP.NET Core Runtime 8 and Windows Hosting Bundle Installer for Win64 For deployment on Linux:
  • ASP.NET Core Runtime 8 for Linux (YUM package manager)
  • .NET 8 CLR for Linux (YUM package manager)
  • Nginx HTTP Server (YUM package manager)

Know more on the Discord server Coding

You can get more engaged on the discord server for more latest updates and discussions in the community at Discord

Download a free PDF Coding

If you have already purchased a print or Kindle version of this book, you can get a DRM-free PDF version at no cost. Simply click on the link to claim your free PDF. Free-Ebook Coding

We also provide a PDF file that has color images of the screenshots/diagrams used in this book at GraphicBundle Coding

Get to know the Authors

Valerio De Sanctis is a skilled IT professional with 20 years of experience in lead programming, web-based development, and project management using ASP.NET, PHP, Java, and JS-based frameworks. He currently holds the position of CTO for several top-tier companies. He is a Microsoft Most Valuable Professional (MVP) for Developer Technologies and the author of many best-selling books on back-end and front-end web development.

Other Related Books