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 FeaturesCombine ASP.NET Core and Angular to build highly versatile web applicationsCreate 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 deploymentBook DescriptionIf 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 learnExplore the new Angular and ASP.NET Core template with Visual Studio 2022Use modern interfaces and patterns such as the HTML5 pushState API, webhooks, and UI data bindingsAdd real-time capabilities to Angular apps with SignalR and gRPCImplement authentication and authorization using JWTsPerform DBMS structured logging using providers such as SeriLogConvert a standard web application to a progressive web application (PWA)Deploy an Angular app to Azure Static Web AppsAdd GraphQL support to back-end and front-end using HotChocolate and Apollo AngularWho this book is forThis 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 ContentsIntroducing ASP.NET and AngularGetting ReadyLooking AroundFront-End and Back-End InteractionsData Model with Entity Framework CoreFetching and Displaying DataForms and Data ValidationCode Tweaks and Data ServicesBack-End and Front-End DebuggingASP.NET Core and Angular Unit TestingAuthentication and AuthorizationProgressive Web AppsBeyond REST – Web API with GraphQLReal-Time Updates with SignalRWindows, Linux, and Azure Deployment
Valerio De Sanctis is a skilled IT professional with more than 15 years of experience in lead programming, web-based development, and project management using ASP.NET, PHP and Java. He held senior positions at a range of financial and insurance companies, most recently serving as Chief Technology Manager and Chief Operating Manager at a leading after-sales and IT service provider for many top-tier life and non-life insurance groups.
Although I use and enjoy working with Angular 17, I’m a bit of a ReactJS fanboy, Yet, even a die-hard React fan like myself found immense value within its pages.Before delving into the intricacies of this book, I must caution potential readers: a solid foundation in JavaScript is a prerequisite, and familiarity with TypeScript and Angular is highly recommended, though not mandatory. My own journey with Angular began at version 17, but regardless of your starting point, this book promises substantial benefits.
The author excels in their mission to guide readers through the process of building full stack Angular applications with .NET 8. For someone like me, whose exposure to ASP.NET had been limited, this book served as a gateway to unexplored territories. From fundamental concepts like databases and data fetching to more advanced topics such as form validation and debugging, the author leaves no stone unturned.
One of the book's standout features is its comprehensive coverage of unit testing, an aspect often overlooked in similar texts. Additionally, the sections dedicated to Progressive Web Apps (PWAs), GraphQL, and SignalR are invaluable, providing insights into cutting-edge technologies that are increasingly shaping modern web development.
What truly sets this book apart is its meticulous approach to deployment—a crucial yet often daunting aspect of software development. The final chapter on deployment is a masterclass in clarity and practicality, offering readers a roadmap to confidently launch their projects into the digital realm.
I must commend the author for their lucid writing style, which makes complex concepts accessible even to beginners. Each chapter is structured in a logical manner, with ample examples and explanations to aid comprehension. It's evident that the author prioritizes the reader's learning experience, ensuring a smooth journey from cover to cover.
I fully recommend this title. Whether you're a seasoned Angular developer looking to expand your skill set or a newcomer eager to embark on your coding journey using great technologies such as .NET and Angular, this book is sure to be an indispensable companion.
Although I use and enjoy working with Angular 17, I’m a bit of a ReactJS fanboy, Yet, even a die-hard React fan like myself found immense value within its pages.Before delving into the intricacies of this book, I must caution potential readers: a solid foundation in JavaScript is a prerequisite, and familiarity with TypeScript and Angular is highly recommended, though not mandatory. My own journey with Angular began at version 17, but regardless of your starting point, this book promises substantial benefits.
The author excels in their mission to guide readers through the process of building full stack Angular applications with .NET 8. For someone like me, whose exposure to ASP.NET had been limited, this book served as a gateway to unexplored territories. From fundamental concepts like databases and data fetching to more advanced topics such as form validation and debugging, the author leaves no stone unturned.
One of the book's standout features is its comprehensive coverage of unit testing, an aspect often overlooked in similar texts. Additionally, the sections dedicated to Progressive Web Apps (PWAs), GraphQL, and SignalR are invaluable, providing insights into cutting-edge technologies that are increasingly shaping modern web development.
What truly sets this book apart is its meticulous approach to deployment—a crucial yet often daunting aspect of software development. The final chapter on deployment is a masterclass in clarity and practicality, offering readers a roadmap to confidently launch their projects into the digital realm.
I must commend the author for their lucid writing style, which makes complex concepts accessible even to beginners. Each chapter is structured in a logical manner, with ample examples and explanations to aid comprehension. It's evident that the author prioritizes the reader's learning experience, ensuring a smooth journey from cover to cover.
I fully recommend this title. Whether you're a seasoned Angular developer looking to expand your skill set or a newcomer eager to embark on your coding journey using great technologies such as .NET and Angular, this book is sure to be an indispensable companion.
Awesome book! It provides sufficient details and information for each of the processes. I wouldn’t recommend it for picking up angular, it is more focused on teaching how to get .NET and angular to talk to each other.
Logging chapter was definitely a huge let down, I’m not even sure what I expected from it but I was disappointed.
Database stuff also meh, seems it’s assumed you already know it or it wants to provide a quick setup for you which is fine, but don’t expect it to explore the database side in detail.
Still, I want to praise the author for such a remarkable and engaging style.