
Develop a practical ASP.NET Core 8 MVC CMS and e-commerce project from scratch, featuring a WYSIWYG admin, product catalog with gallery images, cart, checkout, and user roles (customer and admin).
Explore the MVC project structure by walking through dependencies, the lib folder, controllers, models, views, and the shared layout, then connect settings, services, and routing in program.cs and appsettings.
Add a dashboard controller to the admin area, annotate with the admin area attribute, create an empty index view, and use tag helpers for admin links and layout.
Enable drag-and-drop ordering for CMS pages by adding an order column, updating the database via a migration and a reorder pages action, and using jQuery UI sortable in admin.
Learn to display gallery images in the product edit view by adding a not mapped gallery images property and enumerating files from the uploads folder for rendering.
Implement admin delete product in ASP.NET Core 8 MVC by locating the product, removing its image and gallery assets from media folders, and redirecting to index with a success message.
Finish the admin products pagination by appending category ID to every page link through query strings, pass the category ID to the view bag, and verify correct navigation.
Demonstrates building a front-end products view by category in an ASP.NET Core 8 MVC CMS and e-commerce project, using slug routing, category validation, and pagination.
Create a small cart view component that shows item count and total amount, including an empty cart, using a small cart view model and cart item model stored in session.
Implement a cart controller and add-to-cart method that fetches a product by id, manages a session-backed cart, updates quantity, saves to session, and redirects back to the referer.
Add login functionality with a login view model for username and password. Use sign in manager to authenticate and redirect with the return URL, showing an invalid username or password.
Add identity links to the layout, conditionally displaying account, login, and register options based on authentication and roles (admin or customer), and implement logout functionality.
Check user identity in the cart view to show the checkout link only for logged-in users and indicate this with a 'you must be logged in to check out' badge.
Create an orders controller that uses the data context and sign-in manager to build an order from the cart, save order details, clear the cart, and show an order confirmation.
Are you looking for a practical, hands-on course that will teach you ASP.NET Core 8 MVC from scratch?
If you like learning by doing then this is the course for you!
In this course I will walk you through creating a big project which includes a CMS and an E-Commerce platform using the latest and greatest C# 12, starting at the very beginning by explaining what the files and folders of the application do.
By completing this one course and understanding the code you will become an ASP.NET Core developer, being able to build your own custom ASP.NET Core 8 MVC applications and be able to tackle any project that comes your way!
You only need to be familiar with C#, have the free Visual Studio 2022 IDE and a willingness to learn!
Also, I do not use any complex patterns, such as the repository pattern, we will use Entity Framework Core directly in this course.
Why?
Because I believe that if you are a beginner you should not over-complicate things.
You should learn and understand how to do things at a lower level and after that you can abstract away as much as you like, as opposed to abstracting right away.
I cover a lot in this course, such as:
Controllers
Views
Models
View Models
Entity Framework Core
Migrations
Asynchronous code (async/await)
Creating databases and tables
Seeding
Packages
Package Manager Console
Areas
Pagination
jQuery
Bootstrap
Flash messages
File Upload
Multiple File Upload
How to create an Image Gallery
Creating and deleting directories on the fly
Identity
Identity Roles
Complex Sessions
Validation
Custom validation
Partial Views
View Components
Tag Helpers
Sections
How to mix JavaScript and C#
How to structure your project simply yet efficiently
and a ton of tips and tricks along the way
Enroll now risk free!