Загрузка...

Build a Full E-commerce Application Using .NET Core 9, SQL Server, MVC | Complete Tutorial

In this full-length tutorial, we'll build a complete e-commerce application using .NET Core 9, SQL Server, HTML, Bootstrap, and Vanilla JavaScript — step-by-step! In this application, we are using Entity Framework Core as an ORM.
This project does not include payment gateway integration but covers everything else from user authentication to shopping cart management and admin dashboards.

🔥 What You Will Learn:
- ASP.NET Core MVC Project Structure
- Creating a web page using html and bootstrap
- Manipulating data with Entity Framework core
- Identity for User Authentication & Authorization
- Dependency Injection & Repository Pattern
- Cart and Checkout Logic
- Admin Panel Development
- Bootstrap UI Integration
- Database Seeding and Management

💻Source Code: https://github.com/rd003/BookShoppingCart-Mvc
📢 I have refactored the source code and tried to optimize it a lot. Once you finish the tutorial, I would recommend you compare all your `repositories` with mine. And you can use refactored code.
🌿 Branch Name: refactored-2025
💻 Full path: https://github.com/rd003/BookShoppingCart-Mvc/tree/refactored-2025
---

📚 Timestamps:

(00:00:00 - 00:02:12) Application Demo
(00:02:12 - 00:03:24) disclaimer
(00:03:24 - 00:03:32) Tech used and tools needed
(00:03:24 - 00:04:49) Creating a new mvc project
(00:04:49 - 00:10:17) Project overview and identity scaffolding
(00:10:17 - 00:18:59) Creating entities
(00:18:59 - 00:23:30) ApplicationDbContext
(00:23:30 - 00:24:53) Applying migrations
(00:24:53 - 00:25:57) Updating OrderStatus entity
(00:25:57 - 00:25:58) Assigning role to user
(00:25:58 - 00:40:29) Seeding admin record in the database
(00:40:29 - 00:42:35) Testing admin login
(00:42:35 - 00:42:51) Authentication is complete, what next?
(00:42:51 - 00:53:56) Understanding the _layout.cshtml
(00:53:56 - 00:54:33) Removing contents from _layout.cshtml
(00:54:33 - 00:55:08) Deleting js and css files
(00:55:08 - 01:01:48) Redesigning Layout with Bootswatch
(01:01:48 - 01:18:41) Designing the index page
(01:18:41 - 01:20:10) Add AuthorName Column in Book Table
(01:20:10 - 01:21:53) Adding Genres in database
(01:21:53 - 01:23:57) Adding books in database part 1
(01:23:57- 01:24:54) Running update-database command again
(01:24:54 - 01:28:29) Add books in database part 2
(01:28:29 - 01:29:51) Adding 2 Images to MVC project
(01:29:51 - 01:45:48) HomeRepository class
(01:45:48 - 01:47:21) IHomeRepository interface
(01:47:21 - 01:48:54) Register IHomeRepository in DI container
(01:48:54 - 01:52:14) home controller's index method
(01:52:14 - 01:56:09) home/index.cshtml
(01:56:09 - 02:09:27) Loding genre from db in home/index
(02:11:47 - 02:12:55) CartRepository class
(02:12:55 - 02:24:18) AddItem()
(02:24:18 - 02:27:46) RemoveItem()
(02:27:46 - 02:32:21) GetUserCart()
(02:32:21 - 02:33:28) ICartRepository
(02:33:28 - 02:33:48) Registering ICartRepository
(02:33:28- 02:36:41) GetUserItemCount()
(02:36:41 - 02:45:41) Refactoring AddItem, RemoveItem
(02:45:41 - 02:56:29) Cart Controller
(02:56:29 - 03:06:16) Add to cart JS feature
(03:06:16 - 03:10:10) Loading CartCount at index
(03:10:10 - 03:17:36) Refactoring index page JS logic
(03:17:36 - 03:30:55) Displaying Cart
(03:30:55 - 03:47:09) DoCheckout() method in CartRepository
(03:47:09 - 03:50:30) Checkout() method in CartController
(03:50:30 - 03:58:37) UserOrderRepository
(03:58:37 - 04:13:21) UserOrderController and UserOrders.cshtml view
(04:13:21 - 04:22:43) Displaying order details in UserOrders.cshtml
(04:22:43 - 04:24:07) Fixing a bug
(04:24:07 - 04:31:12) Checkout form
(04:31:12 - 04:51:37) Show Orders to admin
(04:51:37 - 05:12:25) Manage Genre entries
(05:12:25 - 05:31:13) Managing Book Entries
(05:31:13 - 05:39:09) Creating an admin panel
(05:39:09 - 05:47:49) Ton 5 selling books

🔖Other links:
▶Code Crunch (precise c# .net videos): https://www.youtube.com/playlist?list=PLP8UhDwXI7f8AqaxdNh98lvAeqktu9bEa
▶Single video courses: https://www.youtube.com/watch?v=e2I7EzuCt1g&list=PLP8UhDwXI7f-IFqwrx89QN1QIurYr94-p&ab_channel=RavindraDevrani
▶dot net 6+ tutorials and projects: https://www.youtube.com/playlist?list=PLP8UhDwXI7f_-5Swp8DlNa6wD15e1JYrU
▶Learn projects from scratch: https://bit.ly/3zpn9ng
▶Dotnet with different databases: https://www.youtube.com/playlist?list=PLP8UhDwXI7f-dOqUH2T2qrdQ1Ow5J6Ap_
▶Authentication and authorization: https://www.youtube.com/playlist?list=PLP8UhDwXI7f9Mcx3Q7yd7faJWBNRhjeJM
▶Design patterns with c#: https://www.youtube.com/playlist?list=PLP8UhDwXI7f8V4BgVJ97qMMA29Sd9H8Vz
▶Practical Oops with c#: https://www.youtube.com/playlist?list=PLP8UhDwXI7f8VDcivJiMkbAZCarj-VWnw
🌟 Connect with me:
👉 Blog: https://ravindradevrani.com/
👉 YouTube: https://youtube.com/@ravindradevrani
👉 Twitter: https://twitter.com/ravi_devrani
👉 GitHub: https://github.com/rd003

---
☕Support my work:
➡️ Buy me a coffee 🍵: https://www.buymeacoffee.com/ravindradevrani
#dotnet #aspnetcore #csharp #project #programming

Видео Build a Full E-commerce Application Using .NET Core 9, SQL Server, MVC | Complete Tutorial канала Ravindra Devrani
Страницу в закладки Мои закладки
Все заметки Новая заметка Страницу в заметки