ASP.NET Core MVC - Up and Running (.NET 5)

Video description

If you want to learn why ASP.NET Core is so popular and how to create and enhance a functional business website and get an overview of ASP.NET Core 5 Model View Controller (MVC), this is the perfect course for you.

After getting a basic introduction to ASP.Net Core 5, you will start building a real-world website that will display products and receive inquiries from the customers about products they are interested in. By building this website, you will become familiar with the fundamentals of ASP.Net Core 5, learn how to set up and connect your application to the database, get to grips with Scaffold identity concepts, work with MailJet to send emails, and a lot more. You will also learn how to scale an existing project, how to architect a mid- to large-scale project, and how to process payments correctly.

By the end of this course, you will have developed all the essential skills needed to create and scale a functional website using the ASP.Net Core 5 MVC framework.

What You Will Learn

  • Understand the foundation of ASP.NET Core MVC 5
  • Set up a database connection with the Entity Framework core
  • Become familiar with MVC classes, such as ViewModel and ViewBag
  • Modify the existing architecture of an application
  • Explore the N-Tier architecture
  • Integrate the Braintree system into the application

Audience

If you are a software engineer or web developer who is looking to build applications using the ASP.NET Core 5 framework, this course is for you. To get started with this course, a basic understanding of C#, SQL, Visual Studio 2019, SQL Server 2017+, and .NET Core 5 is needed.

About The Author

Bhrugen Patel: Bhrugen Patel is a passionate and creative software engineer with a strong focus on simplicity and thorough details. He has been programming since high school and was involved with multiple web and desktop projects using .NET. He has a master’s degree in computer science and a bachelor’s degree in computer engineering. He also has many years of experience with .NET C# and .NET MVC. He enjoys teaching alongside his full-time job.

Table of contents

  1. Chapter 1 : Part 1 - Introduction
    1. Welcome
    2. What We Will Build – Part 1
    3. What We Will Build in This Course – Part 2
    4. Tools Needed
    5. Project Resources
    6. ASP.NET Core
    7. Creating a Project
    8. Project File
    9. Program.cs File
    10. Dependency Injection
    11. Startup Class – Part 1
    12. Startup Class – Part 2
    13. Routing in Model View Controller (MVC)
    14. AppSettings
    15. wwwRoot and launch launchSettings
    16. Model View Controller (MVC) Applications
    17. Performing Routing
    18. Views in the Default Project
  2. Chapter 2 : Part 1 - Setting Up a Database and Category Management
    1. .NET 6 Update - Nullable
    2. Creating Your First Model
    3. Adding a Connection String
    4. Setting Up DbContext
    5. Configuring a Complete DbContext
    6. Pushing a Category to a Database
    7. Checking a Database
    8. Adding a Category Controller – Part 1
    9. Adding a Category Controller – Part 2
    10. Getting All Categories
    11. Displaying All Categories
    12. Adding a Category – Part 1
    13. Adding a Category – Part 2
    14. Adding a Category – Part 3
    15. Assignment
    16. Assignment Solution
  3. Chapter 3 : Client-Side Validations and Category Update/Delete
    1. Validations in ASP.NET Core
    2. Client-Side and Server-Side Validations
    3. Passing Parameters on Redirect
    4. Edit and Delete Option
    5. Updating a Category
    6. Deleting a Category
    7. Adding Font Awesome
    8. Assignment
    9. Assignment Solution
  4. Chapter 4 : Product Management
    1. Adding a Product Model
    2. Pushing a Product to the Database
    3. Adding the List and View Options
    4. Product Upsert
    5. Product Upsert User Interface – Part 1
    6. Product Upsert User Interface – Part 2
    7. ViewBag and ViewData
    8. What is ViewModel?
    9. Demonstration of ViewModel
    10. Introduction to SweetAlert
    11. Introduction to Summernote
    12. Creating a Product
    13. Displaying the Image Edit Option
    14. Product Upsert User Interface – Part 3
    15. ModelState Not Valid
    16. Deleting a Product
    17. Assignment
    18. Assignment Solution
    19. Eager Loading
    20. Modifying the Product Model
  5. Chapter 5 : Part 1 - Customer Facing Website Management
    1. Navbar Updates
    2. Creating ViewModel for the Home Page
    3. Working on the Home Index View
    4. Partial View
    5. Demonstration of the Home Page
    6. Details Virtual Machine (VM) and Action
    7. Displaying Product Details
    8. Configuring Sessions
    9. User Session GET method
    10. Adding Cards to Your Session
    11. "Remove From Cart" Button Logic
    12. Adding the RemoveFromCart Logic
  6. Chapter 6 : Part 1 - Scaffold Identity
    1. Scaffold Identity Tables
    2. Scaffold Identity Pages
    3. Modifying Scaffolded Identity Tables
    4. Adding a Name and Phone Number to Registration Page
    5. Configuring RoleManager
    6. Registering the First User
    7. Creating New Admin Users
    8. Changes in the User Interface (UI) for Admin
  7. Chapter 7 : Part 1 - Shopping Cart and Inquiry Email
    1. Creating a Cart Controller
    2. Shopping Cart User Interface (UI)
    3. Deleting Cart Items
    4. Adding the Basic Authorization Levels
    5. Adding the Summary Functionality
    6. Designing the Summary Page User Interface (UI)
    7. Summary Solution
    8. Signing Up for MailJet
    9. Adding MailJet to the Website
    10. Sending an Email
    11. Introduction to ProtonMail
    12. Accessing the AppSettings Configuration
    13. Using an Inquiry Template for Confirmation
    14. forEach() versus For
    15. Getting Data from the Email Template
    16. Demonstration of the Email Template
    17. Adding Authorization
    18. Resolving the Register Admin User Bug
  8. Chapter 8 : Part 2 - Introduction
    1. Welcome
    2. What We Will Build
    3. Topics Covered
    4. What We Built in Part 1
    5. New Requirements
    6. Approaching Change in Requirements
    7. Getting Project Resources
    8. Project Overview of Part 1
  9. Chapter 9 : Part 2 – Code Separation
    1. Introduction
    2. Working with Utility – Part 1
    3. Working with Utility – Part 2
    4. Separating Models
    5. Separating Data Layers – Part 1
    6. Separating Data Layers – Part 2
    7. Testing the New Migration
    8. Packages
    9. Bootstrap 5: Changes – Part 1
    10. Bootstrap 5: Changes – Part 2
    11. Cleaning Up the Code
  10. Chapter 10 : Part 2 - Repository Pattern
    1. Repository Interface – Part 1
    2. Repository Interface – Part 2
    3. Repository Interface – Part 3
    4. Category Repository
    5. Implementing the Category Repository
    6. Solution - Application Type Repository
    7. Product Repository
    8. Product Repository Continued
    9. Common Error Properties
  11. Chapter 11 : Part 2 - Inquiry Details (Admin)
    1. Implementing an Inquiry Header Model
    2. Inquiry Details Model
    3. Pushing Inquiry Header and Detail to the Database
    4. Inquiry Repository
    5. Modifying the Repository Pattern – Part 1
    6. Modifying the Repository Pattern – Part 2
    7. Submit Inquiry
    8. Inquiry Controller and ViewModel
  12. Chapter 12 : Part 2 - Inquiry Management
    1. Adding Inquiry Index View
    2. Inquiry.js
    3. Demonstration of DataTables
    4. Getting Inquiry Details
    5. Viewing Inquiry Details
    6. Converting Products to Carts
    7. Deleting Inquiry
    8. Implementing Toastr Notifications
    9. Adding TempData and Toastr to the Website
    10. Adding Alerts to the Application
  13. Chapter 13 : Part 2 - Shopping Cart
    1. Change in Requirements
    2. Adding SqFt to the Model
    3. Adding SqFt to the Session
    4. Modifying the Shopping Cart
    5. Updating the Shopping Cart User Interface (UI)
    6. Updating the Cart User Interface (UI)
    7. Implementing the Update Cart Method
    8. Update Cart Functionality
    9. Update Cart on Clicking the Continue Button
    10. Scenarios for User Details
    11. User Details Based on the Role of User
    12. Summary Page SqFt Calculation
    13. Adding More Fields to the Order Summary Page
    14. Adding Validations
  14. Chapter 14 : Part 2 - Order and Payments
    1. Adding an Order Header and Order Details Model
    2. Working on the Order Repository
    3. Creating an Order
    4. Creating a New Order
    5. Working on Order Confirmation
    6. Registering for Braintree
    7. Setting Up Braintree – Part 1
    8. Setting Up Braintree– Part 2
    9. Setting Up Braintree Transaction Client – Part 1
    10. Braintree Payment Flow
    11. Setting Up Braintree Transaction Client – Part 2
    12. Overview of Braintree Transaction
    13. Setting Up the Braintree Server
    14. Getting Braintree in Action
    15. Clearing the Cart
  15. Chapter 15 : Part 2 – Social Login
    1. Single Sign-On (SSO) Package and Version Update
    2. Registering with Facebook – Part 1
    3. External Login Changes
    4. Registering with Facebook – Part 2
    5. Social Login Association Samples
    6. Redesigning the User Interface (UI)
    7. Implementing Changes in the Login User Interface (UI)
    8. Resolving the Login Bug
    9. Designing the Register User Interface – Part 1
    10. Designing the Register User Interface (UI) – Part 2
  16. Chapter 16 : Part 2 - Order Management
    1. Order ListView Model
    2. Order Index Action Method - Part 1
    3. Setting up Syncfusion
    4. Adding the Syncfusion Grid
    5. Customizing the Syncfusion Grid
    6. Working on the "Add Filter" User Interface (UI)
    7. Order List Filter Logic
    8. Validating the Cart Summary
    9. Implementing Order Details
    10. Working on Order Details View – Part 1
    11. Order Details View – Part 2
    12. Process and Ship Order
    13. Implementing the Refund Transaction Function
    14. Working on Refund Details with Braintree
    15. Updating Order Details
    16. Fixing Validation Bugs
    17. Fixing Admin Registration Bugs
  17. Chapter 17 : Part 2 – Azure Deployment
    1. Seeding the Database – Part 1
    2. Seeding the Database – Part 2
    3. Testing DbInitializer
    4. Azure – Part 1
    5. Azure – Part 2
    6. Adding a Facebook Login Option

Product information

  • Title: ASP.NET Core MVC - Up and Running (.NET 5)
  • Author(s): Bhrugen Patel
  • Release date: January 2021
  • Publisher(s): Packt Publishing
  • ISBN: 9781801071826