English | 2016 | ISBN: 978-1-78646-568-9 | 484 Pages | PDF, EPUB | 22 MB
Writing code is about striking a balance between maintainability and productivity—how quickly you can write it against how much more you have to write in the future. This is a guide to doing just that by combining the impressive capabilities of ASP.NET Core and Angular 2. It shows you how to successfully manage an API and use it to support and power a dynamic single-page application.
We’ll show you how to construct your data model and manage routing and redirects before wrapping it up and styling it, all with the help of ASP.NET and Angular 2. You’ll also learn how to optimize your application for SEO, check and secure any vulnerabilities, implement a viable authentication mechanism and, last but not least, use the proper tools and strategies for successful deployment. From readable URIs to OData retrieval and authentication patterns, we’ll make sure you have all the technical knowledge you need and, more importantly, bring it all together so you can focus on what’s important: a high-quality application that performs for users.
What You Will Learn
- Find out how ASP.NET Core’s and Angular 2’s features perfectly complement each other
- Learn how to set up the resources you need and configure the MVC 6 interface
- Handle requests and actions using server-side and client-side Routing
- Create the Data Model using Entity Framework Core
- Learn how to use Angular 2 components and master directives
- Implement a token-based authorization and authentication flow supporting external login providers such as Facebook, Google, Twitter and more
- Create responsive, mobile-friendly views using Bootstrap and LESS
- Setup and optimize your production environment using IIS and SQL Server
- Secure your application against a diverse range of dangerous security threats