Skip to content

This is an ASP.NET MVC 5 E-commerce website designed to provide a comprehensive shopping experience for users and a robust management system for administrators. The project includes features for managing products, categories, brands, suppliers, discounts, and orders.

Notifications You must be signed in to change notification settings

webservice24org/mvc5-entityframework6-ecommerce-website

Repository files navigation

Overview

This is an ASP.NET MVC 5 E-commerce website designed to provide a comprehensive shopping experience for users and a robust management system for administrators. The project includes features for managing products, categories, brands, suppliers, discounts, and orders. Users can browse products, place orders, and manage their profiles.

Video Demonstration

Check out our video demonstration on YouTube.

Watch the video

Features

Admin Panel

Admins have a wide range of features to manage the e-commerce platform effectively:

Brand Management: Edit, update, and delete brands. Product Category Management: Edit, update, and delete product categories. Product Sub Category Management: Edit, update, and delete product subcategories. Unit Management: Edit, update, and delete units. Supplier Management: Edit, update, and delete suppliers. Discount Management: Edit, update, and delete discounts. Product Management: Edit, update, and delete products. Order Management: View and update orders. Customer Management: Manage customer accounts.

Frontend

The frontend provides users with a seamless shopping experience:

Product Ordering: Users can browse and order products. Product Details: View detailed information about products. User Profile Management: Users can manage their profiles. Order Tracking: Users can see their order status in their profile panel. Authentication: Users can register and log in from the front page.

How to Run this Project

Follow these steps to set up and run the project on your local machine:
  • Extract the ZIP folder.
  • Delete all files and folders inside the BIN folder.
  • Delete all files and folders inside the BIN folder.
  • Open the project in Visual Studio.
  • Configure the Database:
    • Open Web.config.
    • Open SQL Server Management Studio and copy the server name.
    • Change the data source in Web.config to your SQL Server instance (only change the data source, leave other settings as they are).
  • Update Database:

    • Open Tools -> NuGet Package Manager -> Package Manager Console.
    • Run the command: update-database.

Seed Demo Data:

  • Open insert-demo-data.sql file (located in the project folder) in SQL Server Management Studio.
  • Press Ctrl+A to select all, then click Execute or press F5.

Run the Project:

  • Move to Visual Studio and open HomeController.
  • Run the project.
  • Admin Login:

    Username: [email protected] Password: Admin@123

    Customer Login:

    Username: [email protected] Password: Customer@123

    Now the E-commerce project will work fine!

    Alternative Options

    If update-database does not work, follow these steps:

    Delete the Migrations Folder. Enable Migrations: Run the command: Enable-Migrations. Create Initial Migration: Run the command: Add-Migration mohiuddin-ecommerce. Seed User Data:

    Add the following code to the configuration file to seed admin and customer users:

    var roleManager = new RoleManager(new RoleStore(context)); var userManager = new UserManager(new UserStore(context));

    if (!roleManager.RoleExists("Admin")) { roleManager.Create(new IdentityRole("Admin")); }

    if (!roleManager.RoleExists("Customer")) { roleManager.Create(new IdentityRole("Customer")); }

    if (userManager.FindByName("[email protected]") == null) { var adminUser = new ApplicationUser { UserName = "[email protected]", Email = "[email protected]" }; var result = userManager.Create(adminUser, "Admin@123");

    if (result.Succeeded)
    {
        userManager.AddToRole(adminUser.Id, "Admin");
    }
    

    }

    if (userManager.FindByName("[email protected]") == null) { var customerUser = new ApplicationUser { UserName = "[email protected]", Email = "[email protected]" }; var result = userManager.Create(customerUser, "Customer@123");

    if (result.Succeeded)
    {
        userManager.AddToRole(customerUser.Id, "Customer");
    }
    

    }

    Run Update-Database:

    Run the command: Update-Database. If Needed:

    Check the database catalog name in Web.config. Once completed, run the project from the HomeController.

    About ME

    I am Mohiuddin. Responsive website Design and Full Stack Web Application Developer. I have a Web Development and Digital Marketing Agency Where We will make creative, flexible and affordable websites. Our affordability meets professionalism. We can do PSD to HTML & WordPress Theme, customize your Theme/website, build a child theme for you. I have a strong knowledge about WP Backery & Elementor page builder. I am skilled in on-page SEO and Keyword research. I Completed 112+ Projects of 8+ country's 22+ client's at various marketplaces since 2014. Your satisfaction is my success.

    Contact me to do your Project

    Whatsapp: +880 1831332732

    Facebook: facebook.com/wpdeveloper24

    About

    This is an ASP.NET MVC 5 E-commerce website designed to provide a comprehensive shopping experience for users and a robust management system for administrators. The project includes features for managing products, categories, brands, suppliers, discounts, and orders.

    Topics

    Resources

    Stars

    Watchers

    Forks

    Releases

    No releases published

    Packages

    No packages published