Check out our video demonstration on YouTube.
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.
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.
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).
-
- Open Tools -> NuGet Package Manager -> Package Manager Console.
- Run the command: update-database.
- 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.
Now the E-commerce project will work fine!
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.
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.