|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/blazor-ecommerce/
课程评论:没有评论
课程名称:使用.NET 6和Blazor WebAssembly构建电子商务网站 课程概述:欢迎来到Blazor WebAssembly电子商务课程!在这个在线课程中,我们将使用.NET 6和Blazor WebAssembly构建一个电子商务Web应用程序。课程涵盖完整的技术栈,包括Blazor作为客户端,Web API作为后端服务,以及使用SQL Server Express的Entity Framework Core作为数据库。课程从一个初步的行走骨架开始,这意味着在课程开始的几小时内,您将学习如何构建一个运行的全栈Web应用程序。 在课程的开始部分,您将不再使用虚拟数据,而是直接从Web服务获取数据并将其返回给Blazor WebAssembly客户端。此外,我们还将介绍一些最佳实践,例如避免使用复杂的控制器,而是使用仓储模式和依赖注入。 接下来,我们将构建电子商务应用的一个重要部分,包括用户可购买的产品、类别、产品变体、搜索框、分页和基本购物车等功能。在这一部分中,您将学习如何利用Blazor WebAssembly、Web API以及使用Entity Framework Core和SQL Server管理实体之间的关系。 随后,我们将深入讨论基于JSON Web令牌的身份验证。您将学习如何注册用户、登录并创建JSON Web令牌(JWT),同时设置默认的HTTP请求头,并利用[Authorize]属性来保护您的Web API,并添加用户个人资料页面以允许用户更改密码。 课程的下一个部分将重点讨论购物车和订单。到这时,您已经实现了一个只在离线状态下工作的购物车,接下来的工作是将购物车中的产品存储在数据库中,并实现最终订单和订单历史的查看功能。此外,我们将使用Stripe实现结账和支付功能,让您的用户可以使用信用卡、Google Pay和Apple Pay进行支付,并实现输入送货地址的功能。 课程的最后部分是构建一个全面的管理控制面板,您将综合使用Blazor WebAssembly的多个功能,创建多个实体的CRUD(增删改查)操作,管理员将能够对所有产品、类别和产品变体进行管理,并引入基于角色的授权来确保用户权限的合理控制。 如果您对课程内容有兴趣,这里是您将学习的主要内容: - 安装.NET 6框架和Visual Studio 2022 - 构建初步的行走骨架 - 创建Blazor WebAssembly ASP.NET Core托管项目 - 实现Web API控制器并使用SwaggerUI进行测试 - 使用SQL Server Express和Entity Framework Core 6 - 添加用户身份验证与JSON Web令牌 - 实现购物车和订单管理 - 使用Stripe进行支付 - 创建管理控制面板及CRUD操作 如果您之前没有听过我的名字,我是Patrick God,将成为您本课程的讲师。我有超过十年的Web开发经验,并在多个项目中应用.NET与Blazor。欢迎您加入这个课程,享受学习的乐趣!
Welcome to the Blazor WebAssembly E-Commerce Course!In this online course, we're going to build an e-commerce web application with.NET 6 & Blazor WebAssembly.We'll cover the complete stack, meaning Blazor for the client, a Web API for the back end web service, and Entity Framework Core with SQL Server Express for the database.The course starts with a walking skeleton. This means, right at the beginning of this course, and in just a few hours you learn how to build a running full-stack web application with all the mentioned frameworks and technologies.So, after this section, you won't use any mock data, for instance. You will already make calls to the web service, grab data from the SQL Server and return the results back to the Blazor WebAssembly client.On top of that, we will introduce best practices to that walking skeleton. For instance, we don't want to use fat controllers. Instead, we'll use the repository pattern together with dependency injection.After that, we build a huge part of the e-commerce application. This section is all about the products your users can buy in your shop, it's about categories, product variants, a search bar, pagination, a basic cart, and so on.With all these implementations you learn lots of features of Blazor WebAssembly, together with the Web API and also relationships between entities and how to manage them with Entity Framework Core and SQL Server.After that, we dive into authentication with JSON web tokens.You will learn how to register users, log them in and create JSON web tokens (JWT) to authenticate your users, set the token in the default HTTP request header, utilize the famous [Authorize] attribute to secure your Web API, and add a page for the users' profile so that they can change their password, for instance.The next section is all about the cart and orders. Until this point, you've already implemented a cart, but it only works offline. So now it's time to store the products of the cart in the database and also implement the final order and an overview of the order history.But one thing will still be missing, and that's an option to checkout and pay for your order. We cover that with the next section and use Stripe to do that. This means, your users can pay with a credit card, Google Pay and Apple Pay. Additionally, we'll continue with a smaller section where we implement the option to add a delivery address.And after that, it's time for the big administration dashboard. Everything you've learned so far comes together in this section.We utilize lots of features of Blazor WebAssembly, we build several CRUD operations for our entities - meaning an administrator should be able to create, read, update and delete all products, categories, and product variants - and to know if the user is allowed to do all that, we introduce role-based authorization.As you can see, there's a lot to learn!Here's an overview of what you will learn in this course:Introduction- Install the.NET 6 Framework & Visual Studio 2022- Get the source code from GitHubFull Stack Foundations - Building a Walking Skeleton- Create a Blazor WebAssembly ASP.NET Core Hosted Project- Debug your project- Learn about the new Hot Reload feature of.NET 6 & Visual Studio 2022- Create Razor Components & utilize CSS Isolation- Implement a Web API Controller & test it with SwaggerUI- Install & use SQL Server Express and Entity Framework Core 6- Utilize Code-First Migrations with EF Core 6 & Seed Data programmatically- Create a Git repository and push your code to GitHubAdding & Using Best Practices- Implement a Service Response with Generics- Use the Repository Pattern and Dependency Injection- Create Services for the client and the serviceIt's all about Products - Blazor WebAssembly in Action- Add more models & entities to your web application like categories, variants, and more- Use several features of EF Core 6 like composite primary keys, more migrations & relationships- Utilize several built-in components of Blazor WebAssembly- Realize a search feature & pagination- Implement a custom layout- Add a cart using the local storage to your applicationLet's add Users - Authentication with JSON Web Tokens- Implement user registration & login- Use data annotations & validation- Introduce the user model- Add token authentication with JSON Web Tokens (JWT)- Implement a custom AuthenticationStateProvider- Add a return URL to the login- Utilize the [Authorize] attributeLet's buy some Products - Cart & Orders- Store the cart of a user in the database- Use the HttpContextAccessor to access the user in the services- Store the orders in the database- View an order history- Utilize the authentication state of the userKa-Ching! - Payment with Stripe Checkout- Introduce Stripe- Use Stripe Checkout for payments- Fulfill an Order with WebHooks- Enable a shipping address in Stripe CheckoutWhere are you from? - Add a Delivery Address- Add an address model with a new migration- Create a shared component for the cart and the user profile pageWe need more stuff! - Admin Dashboard- Introduce role-based authorization on the client & the server- Extend your models- Create several administration pages- Implement CRUD operations (create, read, update, delete) for your entitiesIf you don't know me yet from YouTube or my other courses on Udemy, my name is Patrick God, I'm going to be your instructor for this course. I'm a web developer for over a decade now, I have worked for big corporations and small teams, as an employee and a contractor and I just love to see the way Microsoft is going with.NET & Blazor and how important these technologies get day by day.So far, I've created 10 courses on Udemy about.NET (Core), Blazor WebAssembly, single-page applications, Angular, and DevOps - with a total of more than 60.000 students and countless 5-Star reviews.If you're still not sure if this course is right for you, there's a 30-day money-back guarantee. So, feel free to check it out and get your money back if it's just not for you. No questions asked.Apart from that, you can always ask questions in the Q & A sections that the community (including me) is happy to answer and you also get the complete source code, if there happens to be a problem with that.Are you ready?I'm looking forward to seeing you in the course!