Build a complete MERN stack (MongoDB, Express.js, React.js, Node.js) e-commerce web application with a fully customizable Admin Dashboard and the following features:Database & Backend:Use MongoDB Atlas with this connection string:iniCopyEditmongodbUrl="mongodb+srv://rohitkumarpanchal078:3BOEE4RB82rmUiJU@cluster0.p3spg0v.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0" Models: Users, Categories, Subcategories, Products, Orders, Cart, Wishlist, Payments, Static Pages (About, Contact, FAQ).Categories can have unlimited subcategories (nested structure).JWT authentication for users and admins.Role-based access control (Admin / User).Search, filter, sort, and pagination APIs.Payment gateway integration (Razorpay/Stripe).Admin CRUD APIs for categories, subcategories, products, users, orders, and pages.Admin Dashboard:Sidebar exactly like the provided screenshot:Group categories into sections (Fashion, Bakery, Vegetables, Fruits, etc.).Each main category has an icon and collapsible subcategories (e.g., Fashion → Clothes → T-Shirts, Shirts, Gowns, Dresses, Sarees, Jeans).Smooth animation for expand/collapse.Responsive and fixed sidebar layout.Admin can create/edit/delete categories, subcategories, and products directly from the dashboard.Product management table with image, stock, price, category, and action buttons.Orders management with status updates (Pending, Shipped, Delivered).User management with ban/unban feature.Dashboard analytics: sales graph, top-selling products, low-stock alerts.Frontend (User Side):Home Page with hero banner, featured products, and categories preview.Product listing views:Shop right sidebar viewBanner right sidebar viewShop full-width viewBanner full-width viewList viewProduct detail page with image zoom, accordion description, reviews, and related products.User profile with order history, wishlist, and saved addresses.Cart page with update/remove options.Checkout page with address form, payment selection, and summary.Static pages (About, Contact, FAQ).Compare products feature.UI/UX:Use React + Tailwind CSS (or Bootstrap).Fully responsive design for mobile, tablet, desktop.Icons from a library like react-icons or lucide-react.Modern and clean theme, matching e-commerce standards.Search bar with live suggestions.Deliverables:Complete backend and frontend folder structure.API routes and controllers.MongoDB schema files.Admin dashboard with sidebar matching screenshot style.React components and pages.Redux Toolkit for state management.Step-by-step instructions to run locally.featured e-commerce application with:Admin dashboardUser profileAuthentication (Login/Signup)Multiple categories & subcategoriesProduct listing & detail pagesCart & wishlistCheckout & payment integrationSearch & filteringStatic pages (About, Contact, FAQ, etc.)MongoDB backend (with your connection string)Here’s the best all-in-one prompt you can use:Prompt:Create a complete MERN stack (MongoDB, Express.js, React.js, Node.js) e-commerce web application with the following detailed requirements:Backend:Use Node.js + Express.js.Connect to MongoDB using this connection string:iniCopyEditmongodbUrl="mongodb+srv://rohitkumarpanchal078:3BOEE4RB82rmUiJU@cluster0.p3spg0v.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0" Implement models for: Users, Categories, Subcategories, Products, Orders, Cart, Wishlist, Payments, Pages (About, FAQ, etc.).Support multiple categories → subcategories structure.JWT-based authentication for users and admins.Admin APIs for CRUD on categories, subcategories, products, orders, users, and pages.User APIs for profile, cart, wishlist, orders, and payment processing.Payment integration (Razorpay/Stripe).Search API with filtering (by price, category, keyword).Frontend (React + Tailwind or Bootstrap):Home Page with banner, categories preview, latest products, and deals.Categories & Products pages:Shop right sidebar viewBanner right sidebar viewShop full-width viewBanner full-width viewList viewProduct details: accordion style info, full-width layout.Static Pages: About Us, Contact Us, FAQ.User Account: Profile page, order history, wishlist, address book.Cart page with quantity update and remove options.Checkout page with address form, payment selection, and order summary.Login/Signup pages with validation.Admin Dashboard:Login for admin.Manage categories, subcategories, products, orders, users, pages.View analytics (sales, orders, revenue, user growth).Features:Fully responsive UI.Role-based access (Admin/User).Search bar with live suggestions.Compare products feature.Pagination and sorting in product list.Deliverables:Complete folder structure for backend and frontend.MongoDB schema files.API routes and controllers.React components and pages.State management (Redux Toolkit).Step-by-step instructions to run locally.like my imags to my application ui to me and fully responsive and dark mode and light mode to mainly to every to costomize to the admin dashboard and user profile updated and main to point "react js , tailwind css ,bootstarph , animation gsap and best framer motion and real time images to use and " so please the full complete the my e-commerce website to me and all content the electronics datas and computer part and all to detail this plesae undertand to my language bor in main folder name is e-commerce app and in folder to more folder one backend and one frontend only backend all content to backend and frontensd all contend to me frontend foleder so please give this and all code frontend to me jsx not the tsx so plese give this me plese give the preview and this is my servr setup "const app=require(".");const { connetdb } = require("./config/db");const PORT=5454;app.listen(PORT, async()=>{ await connetdb(); console.log("Ecommerce api listenig at PORT ",PORT);})" and index.js file like "const express=require ("express")const cors =require ("cors") const app=express() app.use(express.json()) app.use(cors()); app.get("/", (req,res)=>{ return res.status(200).send({message :"welcome to ecoomrese ",status:true}) }) module.exports=app;"and this is setup to the mongodb "const mongoose = require("mongoose");const mongodbUrl="mongodb+srv://rohitkumarpanchal078:3BOEE4RB82rmUiJU@cluster0.p3spg0v.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0";const connetdb=()=>{ return mongoose.connect(mongodbUrl);}module.exports={connetdb}"so plese run the correct all to my code
I'll create a complete MERN stack e-commerce application based on your requirements and the provided screenshots. Let me build this step by step with the exact folder structure you requested.
I've created a comprehensive MERN stack e-commerce application with all the features you requested. Here's what I've built:
e-commerce-app/
├── backend/
│ ├── models/
│ ├── routes/
│ ├── middleware/
│ ├── config/
│ └── server.js
└── frontend/
├── src/
│ ├── components/
│ ├── pages/
│ ├── store/
│ └── utils/
└── public/npm run install-depsnpm run devhttp://localhost:5454http://localhost:3000The application includes all the features from your screenshots:
To configure the generation, complete these steps: