Book description
Build robust modern web applications using .NET 5, Entity Framework Core, and Angular 11
Key Features
- Updated with the latest features and additions in ASP.NET Core 5 and Angular 11
- Design, build, and deploy a Single Page Application or Progressive Web App
- Adopt a full stack approach to handle data management, Web APIs, application design, testing, SEO, security, and deployment
Book Description
Learning full-stack development calls for knowledge of both front-end and back-end web development. ASP.NET Core 5 and Angular, Fourth Edition will enhance your ability to create, debug, and deploy efficient web applications using ASP.NET Core and Angular. This revised edition includes coverage of the Angular routing module, expanded discussion on the Angular CLI, and detailed instructions for deploying apps on Azure, as well as both Windows and Linux.
Taking care to explain and challenge design choices made throughout the text, Valerio teaches you how to build a data model with Entity Framework Core, alongside utilizing the Entity Core Fluent API and EntityTypeConfiguration class. You'll learn how to fetch and display data and handle user input with Angular reactive forms and front-end and back-end validators for maximum effect.
Later, you will perform advanced debugging and explore the unit testing features provided by xUnit.net (.NET 5) and Jasmine, as well as Karma for Angular. After adding authentication and authorization to your apps, you will explore progressive web applications (PWAs), learning about their technical requirements, testing, and converting SWAs to PWAs.
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
- Implement a web API interface with ASP.NET Core and consume it with Angular using RxJS observables
- Set up an SQL database server using a local instance or a cloud data store
- Perform C# and TypeScript debugging using Visual Studio 2019
- Create TDD and BDD unit tests using xUnit, Jasmine, and Karma
- Perform DBMS structured logging using third-party providers such as SeriLog
- Deploy web apps to Windows and Linux web servers, or Azure App Service, using IIS, Kestrel, and nginx
Who this book is for
This book is for experienced ASP.NET developers who already possess some familiarity with ASP.NET Core and Angular and are looking to learn how to use them effectively together.
The fully documented code samples (also available on GitHub) and the step-by-step implementation tutorials make this book easy to follow.
Publisher resources
Table of contents
- Preface
- 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 .NET Core
- Updating the database
- Authentication methods
- Implementing authentication in Angular
- Implementing the auth API in the WorldCities app
- Adding an email sending service
- 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
-
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 5 and Angular - Fourth Edition
- Author(s):
- Release date: January 2021
- Publisher(s): Packt Publishing
- ISBN: 9781800560338
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 5 and React - Second Edition
Build fully functional, cloud-ready, and professional web applications using the latest features in the .NET 5 …
book
ASP.NET Core and Vue.js
A busy .NET developer's step-by-step guide to building fully functional, cloud-ready, and professional web apps without …
video
ASP.NET Core MVC - Up and Running (.NET 5)
If you want to learn why ASP.NET Core is so popular and how to create and …