Book description
Create fast, scalable, and high-performance applications with C# and ASP.NET Core
About This Book
Get first-principle coverage of the latest ASP.NET Core MVC
Find out how to bring together the capabilities and features of both Angular 2 and ASP.NET Core
Discover common areas you might encounter performance problems with and areas you don’t need to worry about
Who This Book Is For
This book is for developers who want to learn to build web applications using ASP.NET Core, those who want to make a career building web applications using Microsoft technology, and those who are working on other web frameworks and want to learn ASP.NET Core.
What You Will Learn
Get to know the concepts of ASP.NET MVC
Create a Controller with action methods
Build a view using several features of the Razor View engine
Construct a Model for ASP.NET Core MVC application
Find out how the features of ASP.NET Core and Angular 2 perfectly complement each other
Handle requests and actions using server-side and client-side Routing
Create a Data Model using Entity Framework Core
Learn how to use Angular 2 components and master directives
Improve performance at the network level and I/O level, and how to optimize the application as a whole
Monitor performance as part of Continuous Integration and regression testing
In Detail
ASP.NET Core is the new, open source, and cross-platform, web-application framework from Microsoft. ASP.NET Core MVC helps you build robust web applications using the Model-View-Controller design. This guide will help you in building applications that can be deployed on non-Windows platforms such as Linux.
Starting with an overview of the MVC pattern, you will quickly dive into the aspects that you need to know to get started with ASP.NET. You will learn about the core architecture of model, view, and control. Integrating your application with Bootstrap, validating user input, interacting with databases, and deploying your application are some of the things that you will learn to execute with this fast-paced guide. You will test your knowledge as you build a fully working sample application using the skills you’ve learned throughout the book.
Moving forward, this guide will teach you to combine the impressive capabilities of ASP.NET Core and Angular 2. Not only will you learn how Angular 2 can complement your .NET skills and toolkit, you'll also learn everything you need to build a complete, dynamic single-page application. Find out how to get your data model in place and manage an API, before styling and designing your frontend for an exceptional user experience. You will find out how to optimize your application for SEO, identify and secure vulnerabilities, and how to successfully deploy and maintain your application. From here, you will delve into the latest frameworks and software design patterns to improve your application performance.
The course offers premium, highly practical content on the recently released ASP.NET Core, and includes material from the following Packt books: Learning ASP.NET Core MVC Programming, ASP.NET Core and Angular 2, and ASP.NET Core 1.0 High Performance.
Style and approach
This learning path takes a first-principles approach to help you understand and implement ASP.NET MVC solutions.
Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the code file.
Table of contents
-
ASP.NET Core: Cloud-ready, Enterprise Web Application Development
- ASP.NET Core: Cloud-ready, Enterprise Web Application Development
- ASP.NET Core: Cloud-ready, Enterprise Web Application Development
- Credits
- Preface
-
1. Module 1
- 1. Introduction to ASP.NET Core
- 2. Setting Up the Environment
- 3. Controllers
- 4. Views
-
5. Models
- Models
- Model binding
- The Entity Framework
- Using the Entity Framework in ASP.NET MVC applications
- Database migration
- Summary
- 6. Validation
- 7. Routing
- 8. Beautifying ASP.NET MVC Applications with Bootstrap
- 9. Deployment of ASP.NET Core Application
- 10. Building HTTP-based Web Services Using ASP.NET Web API
- 11. Improving Performance of an ASP.NET Core Application
- 12. ASP.NET Core Identity
-
2. Module 2
-
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
- 2. ASP.NET Controllers and Server-Side Routes
- 3. Angular 2 Components and Client-Side Routing
- 4. The Data Model
- 5. Persisting Changes
- 6. Applying Styles
-
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
-
8. Third-Party Authentication and External Providers
- Introducing OpenID connect servers
- Installing OpenIddict
- External authentication providers
- Conclusions
- Suggested topics
- Summary
- 9. User Registration and Account Edit
-
10. Finalization and Deployment
- Switching to SQL Server
- Installing SQL Server 2016 Express
-
Installing SQL Server Management Studio
-
Configuring the database
- Changing the authentication mode
- Adding the OpenGameList database
- Adding the OpenGameList login
- Mapping the login to the database
- Adding a SQL Server connection string
- Creating an application settings file for production
- Updating external providers
- Configuring the publishOptions
- Checking the Startup class
- Updating the launchSettings.json
-
Configuring the database
- Publishing our native web application
- Configuring IIS
- Firing up the engine
- Suggested topics
- Summary
-
1. Getting Ready
-
3. Module 3
- 1. Why Performance Is a Feature
- 2. Measuring Performance Bottlenecks
- 3. Fixing Common Performance Problems
- 4. Addressing Network Performance
- 5. Optimizing I/O Performance
- 6. Understanding Code Execution and Asynchronous Operations
- 7. Learning Caching and Message Queuing
- 8. The Downsides of Performance-Enhancing Tools
- 9. Monitoring Performance Regressions
- 10. The Way Ahead
- Bibliography
Product information
- Title: ASP.NET Core: Cloud-ready, Enterprise Web Application Development
- Author(s):
- Release date: June 2017
- Publisher(s): Packt Publishing
- ISBN: 9781788296526
You might also like
book
Tidy First?
Messy code is a nuisance. "Tidying" code, to make it more readable, requires breaking it up …
book
Modern Software Engineering: Doing What Works to Build Better Software Faster
Improve Your Creativity, Effectiveness, and Ultimately, Your Code In Modern Software Engineering, continuous delivery pioneer David …
book
Learning Git
This book teaches Git in a simple, visual, and tangible manner so that you can build …
book
Entity Framework Core in Action, Second Edition
Entity Framework Core in Action, Second Edition is an in-depth guide to reading and writing databases …