Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Coursera

ASP.NET Core Razor Pages - The Complete Guide (.NET 6)

Packt via Coursera

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
This course features Coursera Coach! A smarter way to learn with interactive, real-time conversations that help you test your knowledge, challenge assumptions, and deepen your understanding as you progress through the course. Dive into the world of ASP.NET Core Razor Pages and become proficient in building dynamic web applications with .NET 6. This course guides you through the process of setting up a project, working with databases, and mastering the fundamentals of Razor Pages. You’ll learn to implement CRUD operations, explore advanced topics like dependency injection, and understand N-Tier architecture to structure applications efficiently. The course begins with an introduction to the core concepts of .NET and Razor Pages, then builds on these foundations through practical hands-on examples and assignments. You’ll progress through key concepts such as database setup, CRUD operations, repositories, and advanced topics like session management, security, and integration with Stripe for payments. The lessons are designed to make you comfortable with both front-end and back-end development. With clear, step-by-step tutorials, you will learn how to manage data, work with views, and implement complex user authentication and authorization mechanisms. You will also be introduced to order management, payment processing, and deploying applications to Azure. This comprehensive course ensures you gain the skills to develop a fully functional web application. This course is ideal for developers who want to learn ASP.NET Core Razor Pages and build dynamic, data-driven applications. It is suitable for beginners with basic programming knowledge or anyone looking to expand their web development skills. By the end of the course, you will be able to design and deploy a full-fledged web application using ASP.NET Core Razor Pages, implement complex CRUD functionality, integrate payment systems, and ensure a secure, scalable project.

Syllabus

  • Introduction
    • In this module, we will introduce the key components of the course, including the necessary tools and technologies. You will get an overview of what to expect as we explore .NET Core, dependency injection, and Razor Pages. Additionally, we’ll set the stage by setting up your first project and covering the essentials like hot reload and routing.
  • Database Setup
    • In this module, we will dive into setting up the database for your application. You'll learn about nullable reference types in .NET 6, how to build the necessary models like the category model, and implement essential data annotations. We’ll also guide you through setting up your database connection and creating a database, ensuring a seamless integration between your application and the database.
  • CRUD - Razor Pages
    • In this module, we will explore the CRUD (Create, Read, Update, Delete) operations within Razor Pages. You will learn how to display, create, edit, and delete categories with smooth user interface integration. We'll cover essential validation techniques (both server-side and client-side), as well as advanced features like TempData and Toastr for effective feedback. Additionally, you'll discover how to scaffold CRUD pages to streamline development.
  • N-Tier Architecture
    • In this module, we will explore the implementation of N-Tier architecture, which promotes a clean separation of concerns in application design. You'll learn how to add multiple projects to your solution and organize data and model files. We will also guide you through structuring admin and customer pages, implementing a dropdown in the navbar, and completing a hands-on assignment focused on Food Type functionality.
  • Repository Pattern
    • In this module, we will focus on implementing the Repository Pattern, which helps in abstracting and managing data access operations. You will learn how to create and implement the IRepository interface and a specific repository for categories. We will also explore the Unit of Work pattern for handling transactions and demonstrate its use in real-world scenarios. A hands-on assignment will allow you to apply these concepts and review your progress.
  • Menu Item Management
    • In this module, we will dive into the creation and management of Menu Items within your application. You'll learn how to build the MenuItem model, create its corresponding table in the database, and integrate it into the UnitOfWork pattern. We'll cover the full CRUD functionality, including rich text editors, DataTables integration, and managing Edit and Delete operations with HTTP handlers and user alerts.
  • Home Page
    • In this module, we will focus on the development of the home page and related functionality. You’ll learn how to implement a Get handler to populate the home page with dynamic data and display it effectively. We will also cover adding additional repository functionality, creating a detailed view page, and managing users to provide a personalized experience on your site.
  • Identity Management
    • In this module, we will explore identity management, focusing on user authentication and role-based authorization. You’ll learn how to scaffold identity, register the first user, and extend the default identity system to meet your needs. Additionally, we will guide you through assigning roles during user registration and creating users with varying roles to control access across the application.
  • Shopping Cart
    • In this module, we will walk through the implementation of a shopping cart system. You’ll learn how to create and manage the shopping cart model, integrate it into the repository, and handle the core cart functionalities like adding items, incrementing quantities, and removing/decrementing items. We’ll also cover order totals, routing for checkout, and provide a comprehensive UI to summarize the cart contents.
  • Order Submission
    • In this module, we will focus on the order submission process. You’ll learn how to create the Order Header and Order Details models to structure the order data. We’ll also guide you through building the repository, loading order summary data, applying validations, and adding the order to the database. By the end of this module, you’ll have the full functionality for managing and submitting orders, as well as performing final cleanup to ensure your project is ready for deployment.
  • Stripe Payments
    • In this module, we will guide you through the integration of Stripe for payment processing in your application. You’ll learn how to create and configure a Stripe account, handle API keys securely, and incorporate Stripe’s payment features into your pages. By the end of this module, you will have the skills to implement a full payment workflow, from setting up the checkout page to handling order confirmations.
  • Order Management
    • In this module, we will focus on managing orders effectively within the system. You'll learn how to display and manage orders with DataTables, design an Order Details UI, and implement features to load, update, and track order statuses. We’ll cover practical functionalities such as toggling status displays, processing refunds, and filtering orders based on their status, enabling smooth order management from start to finish.
  • Advanced Topics
    • In this module, we will dive into several advanced topics to enhance the functionality and security of your application. You’ll learn how to manage user sessions, use view components for reusable logic, and send emails using both SMTP and SendGrid. Additionally, we’ll cover social login integrations (with Facebook), as well as securing both navigation and user registration processes to ensure data privacy and application security.
  • Azure Deployment
    • In this module, we will guide you through the process of deploying your application to Azure. You’ll learn how to seed the database with initial data, create a SQL database on Azure, and run migrations to set up the database in the cloud. Finally, we’ll cover the deployment process to get your application live and accessible to users.

Taught by

Packt - Course Instructors

Reviews

Start your review of ASP.NET Core Razor Pages - The Complete Guide (.NET 6)

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.