ASP.NET Core and Angular 2

Create powerful applications for the modern web

ASP.NET Core and Angular 2

Learning
Valerio De Sanctis

4 customer reviews
Create powerful applications for the modern web
$35.99
$44.99
RRP $35.99
RRP $44.99
eBook
Print + eBook

Instantly access this course right now and get the skills you need in 2017

With unlimited access to a constantly growing library of over 4,000 eBooks and Videos, a subscription to Mapt gives you everything you need to get that next promotion or to land that dream job. Cancel anytime.

Free Sample

Book Details

ISBN 139781786465689
Paperback484 pages

Book Description

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.

Table of Contents

Chapter 1: Getting Ready
Two players  one goal
The field of choice – single-page application
A sample single-page application project
Preparing the workspace
First run
A faster alternative using scaffolding tools
References
Suggested topics
Summary
Chapter 2: ASP.NET Controllers and Server-Side Routes
Data flow
Our first Controller
Understanding routes
Dealing with single items
Suggested topics
Summary
Chapter 3: Angular 2 Components and Client-Side Routing
Master-detail binding
Adding additional lists
Two-way data binding
Client-side routing
Full routing test
Suggested topics
Summary
Chapter 4: The Data Model
Getting ready
Creating entities
Defining relationships
Setting up DbContext
Choosing the database engine
Creating the database
Implementing a data seed strategy
Seeding the database
Testing the data provider
Suggested topics
Summary
Chapter 5: Persisting Changes
Add, update, and delete items
Splitting the ItemDetail component
Suggested topics
Summary
Chapter 6: Applying Styles
How bad is it, doc?
Introducing LESS
Configuring LESS
DIY versus framework-based styling
Adding Bootstrap
Applying styles
Suggested topics
Summary
Chapter 7: Authentication and Authorization
Do we really need these?
Authentication
Authorization
Proprietary or third-party?
Choosing an authentication mode
Installing AspNetCore.Identity
Updating the database
Authentication methods
Implementing JSON web token authentication
Suggested topics
Summary
Chapter 8: Third-Party Authentication and External Providers
Introducing OpenID connect servers
Installing OpenIddict
External authentication providers
Conclusions
Suggested topics
Summary
Chapter 9: User Registration and Account Edit
User Registration
Edit Account
Conclusions
Suggested topics
Summary
Chapter 10: Finalization and Deployment
Switching to SQL Server
Installing SQL Server 2016 Express
Installing SQL Server Management Studio
Publishing our native web application
Configuring IIS
Firing up the engine
Suggested topics
Summary

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

Authors

Table of Contents

Chapter 1: Getting Ready
Two players  one goal
The field of choice – single-page application
A sample single-page application project
Preparing the workspace
First run
A faster alternative using scaffolding tools
References
Suggested topics
Summary
Chapter 2: ASP.NET Controllers and Server-Side Routes
Data flow
Our first Controller
Understanding routes
Dealing with single items
Suggested topics
Summary
Chapter 3: Angular 2 Components and Client-Side Routing
Master-detail binding
Adding additional lists
Two-way data binding
Client-side routing
Full routing test
Suggested topics
Summary
Chapter 4: The Data Model
Getting ready
Creating entities
Defining relationships
Setting up DbContext
Choosing the database engine
Creating the database
Implementing a data seed strategy
Seeding the database
Testing the data provider
Suggested topics
Summary
Chapter 5: Persisting Changes
Add, update, and delete items
Splitting the ItemDetail component
Suggested topics
Summary
Chapter 6: Applying Styles
How bad is it, doc?
Introducing LESS
Configuring LESS
DIY versus framework-based styling
Adding Bootstrap
Applying styles
Suggested topics
Summary
Chapter 7: Authentication and Authorization
Do we really need these?
Authentication
Authorization
Proprietary or third-party?
Choosing an authentication mode
Installing AspNetCore.Identity
Updating the database
Authentication methods
Implementing JSON web token authentication
Suggested topics
Summary
Chapter 8: Third-Party Authentication and External Providers
Introducing OpenID connect servers
Installing OpenIddict
External authentication providers
Conclusions
Suggested topics
Summary
Chapter 9: User Registration and Account Edit
User Registration
Edit Account
Conclusions
Suggested topics
Summary
Chapter 10: Finalization and Deployment
Switching to SQL Server
Installing SQL Server 2016 Express
Installing SQL Server Management Studio
Publishing our native web application
Configuring IIS
Firing up the engine
Suggested topics
Summary

Book Details

ISBN 139781786465689
Paperback484 pages
Read More
From 4 reviews

Read More Reviews