OmniCart

One commerce platform for every business type.

OmniCart is a multi-tenant e-commerce and business management platform for merchants who need one system to run storefronts, orders, inventory, payments, and customer operations across different industries. It supports configurable storefronts, universal product types, and separate admin dashboards for each business, while keeping data isolated and workflows flexible enough for retail, services, digital goods, and hybrid models.

Business Goals

  • Launch a production-ready multi-tenant commerce platform in 12 weeks with at least 3 pilot businesses live.
  • Increase checkout conversion by 15 percent within 90 days through streamlined product pages, cart, and payment flows.
  • Reduce manual order and inventory administration time by 40 percent within 60 days for early merchants.
  • Achieve 99.9 percent monthly uptime and under 300 ms median API response time for core commerce endpoints.
  • Reach 80 percent feature adoption of inventory, order, and analytics modules among active business users within 6 months.

User Goals

  • Let business owners create and configure a complete storefront without rebuilding the app.
  • Allow customers to browse, search, filter, and purchase products quickly on mobile and desktop.
  • Give staff role-based access to manage products, orders, inventory, and support tasks safely.
  • Provide accurate stock, payment, and order status visibility in real time.
  • Enable merchants to understand sales, profit, and customer behavior from one dashboard.

Non-Goals

  • Building a marketplace where customers can buy from multiple independent businesses in a single cart.
  • Replacing full ERP, accounting, or warehouse management suites.
  • Supporting custom on-premise deployments in the first release.
  • Creating industry-specific workflows that are hardcoded for one category such as gifts, fashion, or jewelry.

Business Owner Asha, 38 - Asha runs a growing retail brand and needs one system to manage storefront branding, products, inventory, and orders without hiring a technical team.

Business Owner Asha, 38

  • As a business owner, I want to configure my store name, logo, colors, and shipping rules, so that my storefront matches my brand.
  • As a business owner, I want to see sales, profit, and stock alerts in one dashboard, so that I can make fast decisions.
  • As a business owner, I want staff permissions to be limited by role, so that my team can work without risking sensitive data.

Store Manager Daniel, 31 - Daniel handles daily operations for several product lines and needs fast tools for order processing, inventory updates, and customer communication.

Store Manager Daniel, 31

  • As a store manager, I want to filter orders by status and payment state, so that I can process them efficiently.
  • As a store manager, I want to update stock after receiving inventory, so that availability stays accurate.
  • As a store manager, I want to issue returns and refunds from a controlled workflow, so that support is consistent and auditable.

Customer Priya, 27 - Priya shops on mobile and expects a clean, trustworthy experience with fast search, clear pricing, and easy checkout.

Customer Priya, 27

  • As a customer, I want to search and filter products quickly, so that I can find what I need without friction.
  • As a customer, I want to save addresses and track orders, so that repeat purchases are faster.
  • As a customer, I want to receive payment and shipping updates, so that I trust the store and know when my order will arrive.

Multi-Tenant Storefront and Branding · High priority

  • Each business must have its own isolated storefront configuration and data boundaries.
  • Support unique business profiles including name, logo, colors, description, currency, tax, shipping, and payment settings.
  • Route storefronts by subdomain or business URL slug with tenant resolution on every request.
  • Enforce tenant-level authorization in backend services and database queries.
  • Allow business owners to preview branding changes before publishing them.
  • Store all tenant-owned records with businessId and index them for query performance.

Customer Commerce Experience · High priority

  • Provide a responsive storefront that supports browsing, product discovery, cart, checkout, and account management.
  • Support search, category filters, sorting, pagination, wishlist, and product detail pages.
  • Show variants, stock status, discounts, delivery estimates, reviews, and related products.
  • Support guest or registered checkout depending on business settings.
  • Handle coupon validation, tax calculation, shipping fees, and order confirmation.
  • Provide account pages for profile, addresses, orders, saved items, and notifications.

Orders, Payments, and Fulfillment · High priority

  • Support end-to-end order lifecycle management with auditable payment and fulfillment records.
  • Integrate payment verification and webhook handling for Razorpay or equivalent gateway.
  • Track order states from placement to delivery, cancellation, return, and refund.
  • Generate invoices and maintain separate records for gross amount, taxes, fees, refunds, and net earnings.
  • Reserve stock during checkout and deduct stock after successful payment confirmation.
  • Support shipping methods, manual shipping fallback, and shipment tracking references.

Inventory and Product Management · High priority

  • Enable universal product modeling for physical, digital, and service-adjacent businesses.
  • Support configurable fields for name, SKU, category, brand, images, pricing, inventory, dimensions, and SEO metadata.
  • Support product variants and optional customization fields such as text, size, color, and add-ons.
  • Track stock movement, low-stock alerts, supplier records, and purchase orders.
  • Allow digital product flags and service-booking extension points without forcing all businesses into physical fulfillment.
  • Maintain inventory logs for adjustments, returns, reservations, and restocks.

AI, Analytics, and Admin Automation · Medium priority

  • Use AI to assist customers and staff while keeping financial logic deterministic and secure.
  • Provide customer AI search and recommendation assistance using only the active tenant’s catalog and content.
  • Provide admin summaries for sales, stock, and product performance based on business data.
  • Require confirmation before AI-suggested actions modify records.
  • Capture AI usage logs, prompts, and results for auditability.
  • Expose analytics dashboards and exportable reports for sales, profit, inventory, and customer trends.

First-Time Store Setup

  • A merchant signs up and creates a business profile in under 5 minutes.
  • They choose a storefront slug or subdomain and upload brand assets.
  • They configure currency, tax, shipping, and payment settings.
  • They add products manually or import a starter catalog.
  • They preview the live storefront and publish when ready.
  • Target time-to-value: first shoppable storefront live in under 30 minutes.

1. Discover and Browse

  • Customers land on a branded storefront, search products, and explore categories quickly.
  • Homepage adapts to the business brand and featured collections.
  • Filters and search update results without page reloads where possible.
  • Empty states and no-result states guide users to refine searches.

2. View Product Details

  • Customers inspect product images, variants, pricing, stock, and customization options before purchase.
  • Variant selection updates price, stock, and media in real time.
  • Validation prevents adding invalid combinations or out-of-stock variants.
  • Optional custom fields appear only when enabled for that product.

3. Add to Cart and Checkout

  • Customers review items, apply coupons, choose delivery and payment options, and place orders.
  • Cart recalculates taxes, shipping, discounts, and totals instantly.
  • Checkout validates address, contact data, and payment requirements before submission.
  • Payment failures preserve cart state and show retry options without duplicating orders.

4. Track and Manage Orders

  • Customers review order status, invoices, shipment information, and return options from their account.
  • Order history shows payment, fulfillment, and delivery milestones.
  • Tracking links and notifications update when shipment status changes.
  • Return and refund actions follow business-configured rules and eligibility checks.

5. Operate the Business

  • Staff use the admin dashboard to manage products, stock, orders, and reports from one place.
  • Role-based menus hide unauthorized modules and actions.
  • Tables support search, filters, bulk actions, and export.
  • Audit logs record sensitive changes such as pricing, refunds, and permissions.

Power Features and Edge Cases

  • Multi-warehouse inventory with optional stock allocation rules.
  • Configurable product customization pricing with per-field surcharges.
  • Service-oriented product mode for booking or inquiry-led sales without forcing shipping.
  • AI-generated product descriptions and customer responses with human approval workflow.
  • Tenant-safe analytics segmentation by store, category, channel, and date range.
  • Offline-tolerant admin forms with draft saving for long product or order edits.

Premium UI Principles

  • Modern light theme by default with tenant-level branding tokens.
  • Mobile-first responsive layout for storefront and admin.
  • Accessible forms, keyboard navigation, clear focus states, and WCAG-minded contrast.
  • Fast data tables with skeleton loaders, empty states, and optimistic UI where safe.
  • Consistent component system for cards, badges, dialogs, charts, and filters.
  • Performance budget focused on fast first paint and minimal layout shift.

Asha runs a growing home and lifestyle business and previously managed orders through spreadsheets, messaging apps, and manual stock counts. When demand increased, she struggled to keep pricing, stock, and shipping information consistent across channels.

With OmniCart, she sets up a branded storefront, adds products with variants and inventory rules, and connects payments and shipping in one admin dashboard. Her team can process orders faster, customers get clearer updates, and she can finally see sales and profit without waiting for end-of-month manual reports.

Within a few weeks, Asha has a system that supports her current catalog and can grow into new categories without rebuilding the platform. The result is less operational friction, better customer trust, and a more scalable business with cleaner data and stronger margins.

User-Centric Metrics

  • At least 70 percent of new merchants publish a live storefront within 30 minutes of signup.
  • Customer add-to-cart to checkout completion rate reaches 25 percent or higher within 90 days.
  • Median product search response time stays under 300 ms for logged-in storefront users.
  • At least 60 percent of active customers complete a second purchase within 6 months.
  • Merchant task completion time for creating a product drops by 50 percent compared with manual workflows.

Business Metrics

  • Merchant retention reaches 85 percent after the first 90 days.
  • Monthly active businesses grow by 20 percent quarter over quarter after launch.
  • Storefront conversion improves by 15 percent for merchants using optimized checkout and product pages.
  • Support ticket volume for order and payment issues stays below 3 percent of monthly orders.
  • At least 50 percent of merchants use analytics reports weekly.

Technical Metrics

  • 99.9 percent uptime for storefront and admin APIs.
  • P95 latency under 400 ms for standard read operations and under 700 ms for checkout writes.
  • Zero cross-tenant data exposure incidents.
  • 100 percent of payment webhooks verified and logged with replay protection.

Tracking Plan

  • Track business_signup_completed with onboarding source and tenant type.
  • Track storefront_published with configured modules and time-to-publish.
  • Track product_created with product type, category, and customization enabled.
  • Track add_to_cart and checkout_started with cart value and device type.
  • Track payment_succeeded and payment_failed with gateway response metadata.
  • Track order_status_changed with previous and new states.
  • Track ai_assistant_used with tenant-safe feature type and user role.

Technical Needs

  • React and Vite frontend with Redux Toolkit for state management and React Router for route organization.
  • Node.js and Express REST API with modular monolith structure and centralized error handling.
  • MongoDB with Mongoose schemas, compound indexes, and tenant-scoped query patterns.
  • JWT access tokens with refresh token rotation and secure cookie or header handling.
  • File uploads through Cloudinary with server-side validation for images and documents.
  • Real-time notifications and live support using Socket.IO where enabled.
  • Background jobs for emails, stock alerts, invoice generation, and analytics aggregation.

Integration Points

  • Razorpay for payments and payment verification.
  • OpenAI API for customer and admin AI assistance.
  • Cloudinary for media storage and optimization.
  • Resend for transactional email delivery.
  • Optional shipping provider APIs with manual fallback for unsupported regions.

Data Storage & Privacy

  • Store tenant-owned data with businessId on every relevant document and enforce it server-side.
  • Keep payment records separate from order totals so taxes, fees, refunds, and earnings remain auditable.
  • Encrypt sensitive secrets and store them only in environment variables or secrets management.
  • Apply retention rules for logs, conversations, and AI usage data to meet GDPR and CCPA expectations.
  • Support account deletion and export requests for customer profile data where legally required.

Scalability & Performance

  • Use pagination, filtering, and indexed lookups for high-volume product, order, and inventory collections.
  • Cache common storefront reads such as categories and featured products when safe per tenant.
  • Prevent race conditions in checkout stock reservation with atomic update patterns or transaction-like safeguards.
  • Separate heavy analytics aggregation into scheduled jobs so storefront writes stay fast.

Potential Challenges

  • Tenant data leakage risk across businesses, mitigated by mandatory businessId scoping in middleware, repositories, and authorization checks.
  • Overselling inventory during concurrent checkouts, mitigated by stock reservation logic and atomic decrements.
  • AI hallucinations in product or financial workflows, mitigated by limiting AI to retrieval and suggestion tasks plus deterministic backend calculations.
  • Complex payment reconciliation, mitigated by storing webhook events, transaction ledgers, and reconciliation reports.
  • Scope creep from universal commerce features, mitigated by phased delivery and configurable modules instead of hardcoded vertical logic.

Team & resourcing - Small cross-functional team: 2 full-stack engineers, 1 UI/UX designer, part-time QA, part-time PM.

Phase 1: Foundation and Architecture · Weeks 1–2

  • Product requirements and wireframes
  • Multi-tenant data model design
  • Frontend app shell and admin shell
  • Authentication scaffolding
  • Database setup, environment configuration, and deployment pipeline

Phase 2: Storefront and Core Commerce MVP · Weeks 3–5

  • Business registration and tenant onboarding
  • Storefront homepage, category pages, product listing, and product detail pages
  • Cart, wishlist, and checkout flow
  • Basic orders, payment initiation, and order confirmation
  • Responsive customer account pages

Phase 3: Admin Operations and Inventory · Weeks 6–8

  • Admin dashboard overview
  • Product CRUD, category management, inventory tracking, and supplier records
  • Order management, shipment status, coupons, and returns basics
  • Role-based permissions and audit logging
  • Business settings and storefront customization

Phase 4: AI, Analytics, and Hardening · Weeks 9–12

  • AI assistant for customers and admins
  • Analytics dashboards and exportable reports
  • Notifications, email flows, and real-time updates
  • Security hardening, performance tuning, testing, and documentation
  • Production deployment and pilot merchant onboarding

Paste this into Cursor, Bolt, Lovable, or v0 to start building.

Build a production-ready multi-tenant universal e-commerce platform called OmniCart using MERN. Create a separate customer storefront app and a separate business admin dashboard app with a shared backend API.

Core requirements:
Support multiple independent businesses with isolated data by businessId/tenantId on all tenant-owned records. No hardcoded business name, category, branding, products, or prices. Each business can configure logo, colors, currency, tax, shipping, payment, categories, products, inventory, and storefront content.

Customer app screens and flows:
Homepage with dynamic hero banners, featured categories, featured products, best sellers, new arrivals, offers, reviews, newsletter section.
Product listing with search, category filters, price filters, brand filters, ratings, availability, sorting, pagination.
Product details with image gallery, variants, specifications, stock, discounts, customization options, related products, reviews, add to cart, buy now, wishlist.
Cart with quantity management, coupon application, tax and shipping estimation, order summary.
Checkout with customer info, address book, shipping choice, payment selection, order review, confirmation, invoice.
Account area with profile, addresses, orders, tracking, wishlist, notifications, support requests.

Admin dashboard screens and flows:
Overview KPIs, sales charts, orders, customers, products, variants, customization options, inventory, suppliers, purchase orders, payments, shipping, coupons, reviews, returns, expenses, profit and loss, analytics, AI assistant, notifications, staff and permissions, security settings.
All modules need CRUD, validation, search, filters, pagination, and role-based access control.

Data model in MongoDB/Mongoose:
Businesses, Users, Roles, Permissions, BusinessSettings, Categories, Products, ProductVariants, CustomizationOptions, Customers, Addresses, Carts, Wishlists, Coupons, Orders, OrderItems, Payments, Shipments, Returns, Refunds, Reviews, Inventory, InventoryLogs, Suppliers, PurchaseOrders, Expenses, Transactions, Notifications, Conversations, AIUsageLogs, AuditLogs.

Backend architecture:
Node.js, Express.js, REST API, JWT auth, refresh token rotation, RBAC, centralized error handling, secure CORS, Helmet, rate limiting, audit logs, tenant authorization middleware, API versioning, file uploads to Cloudinary, email with Resend, payment integration with Razorpay, optional shipping provider integration, Socket.IO for real-time notifications.

Frontend stack:
React, Vite, JavaScript, Tailwind CSS, shadcn/ui, Redux Toolkit, React Router, React Hook Form, Zod, Axios or RTK Query.

Important UX and product constraints:
Use a modern light theme by default. Make the storefront premium and mobile-first, and make the admin dashboard professional and data-heavy. Support optional product customization, optional digital products, and optional service-booking style extensions without forcing every business into the same workflow. Keep financial calculations deterministic in backend services, not by AI. Require confirmation before AI-generated actions change records.

Deliverables:
Generate the full app scaffold, route structure, reusable components, API layer, database schemas, auth flow, tenant scoping middleware, role permissions system, storefront pages, admin pages, and sample seed-safe placeholder data. Use production-oriented folder structure, clean state management, form validation, and responsive UI components.

Business Idea

## AI-Powered Universal E-commerce & Business Management Platform ### 1. Project Overview Build a production-ready, AI-powered, full-stack e-commerce platform designed to support multiple types of businesses across different industries. This platform must NOT be designed exclusively for a gift shop, jewellery business, clothing store, or any single business category. It must function as a universal and configurable e-commerce solution that can be adapted to different business models, product categories, services, and selling requirements. The system must contain two major applications: 1. Customer-Facing E-commerce Website. 2. Separate Business Owner / Admin Dashboard. The architecture should support multiple independent businesses, each with its own storefront, products, branding, customers, orders, inventory, payment settings, and business configurations. The objective is to create a scalable, reusable, AI-powered commerce platform that can serve small businesses, startups, growing retailers, and established businesses. ### 2. Target Business Categories The platform must support businesses such as: - Clothing and fashion. - Jewellery and accessories. - Customized gifts and handmade products. - Electronics and gadgets. - Beauty and skincare. - Food and beverages. - Home décor and furniture. - Books and stationery. - Sports and fitness products. - Art and craft products. - Cosmetics. - General retail businesses. Business-specific features must be configurable instead of hardcoded. ### 3. Technology Stack Frontend: - React.js with Vite. - JavaScript. - Tailwind CSS. - shadcn/ui. - Redux Toolkit. - React Router. - React Hook Form. - Zod validation. - Axios / RTK Query. Backend: - Node.js. - Express.js. - REST API architecture. - Modular backend architecture. - JWT authentication. - Refresh token authentication. - Role-based access control. Database: - MongoDB. - Mongoose ODM. - Proper collection relationships. - Database indexing. - Data validation. Integrations: - OpenAI API for AI features. - Razorpay payment gateway. - Cloudinary for image and document storage. - Resend for transactional emails. - Socket.IO for real-time communication. - Shipping provider integrations with manual shipping fallback. Deployment: - Vercel for frontend. - Render or another suitable Node.js hosting provider. - MongoDB Atlas. - Environment-based configuration. ### 4. Multi-Business Architecture Design the platform using a multi-tenant architecture. Each registered business must have its own isolated business environment. Each business should have: - Unique business ID. - Business name. - Business logo. - Brand colors. - Store URL or subdomain. - Business description. - Business category. - Currency and regional settings. - Tax configuration. - Shipping configuration. - Payment configuration. - Product catalogue. - Customer records. - Order records. - Inventory records. - Business analytics. - AI configuration. All business-owned records must be associated with the correct tenant/business ID. Implement tenant-level authorization and data isolation on the backend. Never rely only on frontend filtering. ### 5. Customer-Facing E-commerce Website Build a responsive and premium-quality storefront. Main navigation: - Home. - Shop / All Products. - Categories. - New Arrivals. - Best Sellers. - Offers. - Wishlist. - Cart. - My Account. - Login / Register. Homepage: - Dynamic hero banners. - Business branding. - Featured categories. - Featured products. - New arrivals. - Best sellers. - Special offers. - Promotional sections. - Customer reviews. - Newsletter subscription. - Contact information. - Footer. Product listing: - Product search. - Category filters. - Price filters. - Brand filters where relevant. - Rating filters. - Availability filters. - Sorting. - Pagination. - Product comparison where supported. Product details: - Product image gallery. - Product description. - Product specifications. - Price and discounts. - Product variants. - Stock availability. - Customization options when enabled. - Quantity selector. - Add to cart. - Buy now. - Wishlist. - Related products. - Customer reviews. Shopping cart: - Multiple products. - Quantity management. - Variant selection. - Customization details. - Coupon application. - Shipping estimation. - Tax calculation. - Order summary. Checkout: - Customer information. - Multiple delivery addresses. - Shipping method selection. - Tax calculation. - Coupon validation. - Payment selection. - Order review. - Order placement. - Confirmation and invoice. Customer account: - Profile management. - Address book. - Order history. - Order tracking. - Wishlist. - Reviews. - Saved configurations. - Payment history. - Notifications. - Support requests. ### 6. Universal Product Management Engine Products must support different types of attributes depending on the business category. Product fields: - Product name. - SKU. - Description. - Category. - Brand. - Images and videos. - Base price. - Discount price. - Tax category. - Stock quantity. - Product status. - Product variants. - Specifications. - Dimensions and weight. - Tags. - SEO metadata. Product customization engine: - Text customization. - Color selection. - Size selection. - Material selection. - Additional components. - Optional accessories. - Personalized messages. - Custom pricing. - Quantity-based pricing. - Additional customization charges. The customization engine must be optional and configurable for each business and product. Support physical products and digital products through configurable product types. Service-based businesses should be supported through an optional service booking extension rather than forcing all businesses into the physical-product workflow. ### 7. Admin Dashboard / Business Owner Dashboard Create a completely separate, professional admin application. Dashboard overview: - Total revenue. - Total orders. - Total customers. - Total products. - Total expenses. - Gross profit. - Net profit. - Pending orders. - Completed orders. - Low-stock products. - Recent transactions. - Sales charts. - Business performance. Admin modules: 1. Dashboard. 2. Business Profile. 3. Storefront Customization. 4. Categories. 5. Products. 6. Product Variants. 7. Product Customization. 8. Orders. 9. Customers. 10. Inventory. 11. Suppliers. 12. Purchase Orders. 13. Payments. 14. Shipping. 15. Coupons and Discounts. 16. Reviews. 17. Returns and Refunds. 18. Expenses. 19. Profit and Loss. 20. Analytics and Reports. 21. AI Business Assistant. 22. Notifications. 23. Staff and Permissions. 24. Security Center. 25. Settings. Every module must have working CRUD operations, backend APIs, database integration, validation, error handling, and appropriate access permissions. ### 8. Inventory and Stock Management - Stock-in and stock-out. - Product-level inventory. - Variant-level inventory. - Low-stock alerts. - Stock adjustments. - Supplier management. - Purchase order management. - Inventory movement history. - Stock reservation during checkout. - Automatic stock deduction after confirmed purchases. - Stock return handling. - Inventory valuation. - Multiple warehouse support as an optional feature. ### 9. Order and Fulfilment Management Order workflow: - Order placed. - Payment pending. - Payment confirmed. - Order processing. - Packed. - Ready for dispatch. - Shipped. - Delivered. - Cancelled. - Return requested. - Refunded. Provide configurable workflows for different business categories. Include: - Order search and filters. - Order details. - Customer information. - Product and customization details. - Payment information. - Shipping information. - Order status updates. - Invoice generation. - Returns and refunds. ### 10. Payment and Financial Management - Razorpay integration. - UPI support. - Card and supported payment methods. - Cash on delivery configuration. - Payment verification. - Payment failure handling. - Refund processing. - Transaction history. - Invoice generation. - Tax management. - Shipping charges. - Coupon discounts. - Payment reconciliation. Financial dashboard: - Total sales. - Revenue. - Product costs. - Operating expenses. - Gross profit. - Net profit. - Profit margins. - Payment breakdown. - Monthly and yearly financial reports. Keep payment records auditable and separate gross order value, refunds, fees, taxes, and seller/business earnings. ### 11. AI-Powered Features Integrate OpenAI API through secure backend services. Customer AI assistant: - Natural-language product search. - Product recommendations. - Product comparison. - Personalized shopping assistance. - Gift suggestions where relevant. - Product discovery. - Frequently asked questions. - Shopping conversation history. Admin AI assistant: - Business performance summaries. - Sales analysis. - Inventory insights. - Low-stock predictions. - Product performance analysis. - Customer purchasing patterns. - Product description generation. - Marketing content generation. - Business improvement suggestions. - Revenue and expense analysis. AI must use only authorized business data and must not expose one tenant's information to another tenant. All financial calculations must be performed by deterministic backend logic, not invented by the AI model. AI-generated actions must require appropriate user confirmation before modifying business records. ### 12. Analytics and Reporting - Sales analytics. - Revenue analytics. - Expense analytics. - Profit analytics. - Product performance. - Category performance. - Customer analytics. - Order analytics. - Inventory analytics. - Payment analytics. - Coupon performance. - Sales trends. - Monthly and yearly reports. - PDF and Excel exports. Provide date filters and business-specific analytics. ### 13. Customer Communication - Email notifications. - In-app notifications. - Order confirmation. - Payment confirmation. - Shipping updates. - Delivery notifications. - Low-stock alerts. - Admin notifications. - Customer support requests. - Optional WhatsApp integration. - Optional live chat using Socket.IO. ### 14. User Roles and Permissions Support the following roles: - Platform Super Admin. - Business Owner. - Business Admin. - Store Manager. - Inventory Manager. - Order Manager. - Customer Support Staff. - Customer. The platform Super Admin manages the overall platform and tenant accounts. Business Owners manage only their own business data. Staff permissions must be configurable. Customers must never access administrative functionality. ### 15. Security Requirements - Password hashing. - JWT access tokens. - Refresh token rotation. - Secure authentication. - Role-based access control. - Tenant-level authorization. - Input validation. - API rate limiting. - Helmet security headers. - Secure CORS. - XSS protection. - NoSQL injection protection. - Secure file uploads. - Payment webhook signature verification. - Audit logs. - Login attempt monitoring. - Session management. - Backup and recovery. - Environment variable protection. ### 16. UI/UX Requirements Design a premium, professional, modern interface. Customer website: - Clean e-commerce experience. - Responsive layouts. - Modern product cards. - Intuitive navigation. - Attractive product details. - Smooth interactions. - Mobile-first responsive design. Admin dashboard: - Separate application layout. - Professional sidebar. - Top navigation. - Dashboard analytics. - Data tables. - Search and filters. - Charts and graphs. - Forms and dialogs. - Status badges. - Notifications. - Responsive mobile interface. Use a modern light theme by default. Allow businesses to customize storefront branding without breaking the common platform design system. Avoid static mock dashboards. All displayed metrics and business records must come from real database data. ### 17. Database Collections Design suitable MongoDB schemas for: - Businesses. - Users. - Staff. - Roles and Permissions. - BusinessSettings. - Categories. - Products. - ProductVariants. - CustomizationOptions. - Customers. - Addresses. - Carts. - Wishlists. - Coupons. - Orders. - OrderItems. - Payments. - Shipments. - Returns. - Refunds. - Reviews. - Inventory. - InventoryLogs. - Suppliers. - PurchaseOrders. - Expenses. - Transactions. - Notifications. - Conversations. - AIUsageLogs. - AuditLogs. Include businessId/tenantId on all relevant tenant-owned records, proper indexes, timestamps, validation, and secure access controls. ### 18. Backend Architecture Use a modular monolithic architecture with separate modules for: - Authentication. - Businesses and tenants. - Users and staff. - Products. - Categories. - Customization. - Cart. - Checkout. - Orders. - Payments. - Inventory. - Shipping. - Customers. - Coupons. - Reviews. - Expenses. - Analytics. - AI services. - Notifications. - Audit logs. Each module should have: - Model. - Routes. - Controller. - Service. - Validation. - Middleware where needed. Use centralized error handling, consistent API responses, pagination, filtering, logging, and API versioning. ### 19. Development Requirements Build the project in clearly defined phases: Phase 1: Requirements, architecture, wireframes, database planning and project setup. Phase 2: Authentication, multi-tenant architecture, user roles and business registration. Phase 3: Customer website, product catalogue, categories and product management. Phase 4: Product customization, cart, wishlist and checkout. Phase 5: Payments, order management and invoices. Phase 6: Inventory, suppliers, shipping and financial management. Phase 7: Separate business admin dashboard. Phase 8: AI integration and real-time notifications. Phase 9: Analytics, reporting and security. Phase 10: Testing, optimization, documentation and deployment. ### 20. Expected Final Deliverable Create a fully functional, scalable, secure, responsive, production-oriented universal e-commerce platform. The final application must include: 1. A common customer-facing e-commerce website. 2. A separate business owner/admin dashboard. 3. Multi-business support with isolated data. 4. Configurable business branding and settings. 5. Dynamic product and customization management. 6. Complete shopping and checkout functionality. 7. Secure payment integration. 8. Inventory and order management. 9. AI-powered customer and admin assistance. 10. Analytics and business reports. 11. Secure authentication and permissions. 12. Complete backend APIs. 13. MongoDB database integration. 14. Testing and deployment documentation. IMPORTANT DEVELOPMENT INSTRUCTIONS: Do not build a static UI-only demonstration. Do not hardcode a particular business name, business category, products, prices, categories, or branding. Do not create a gift-only or single-industry architecture. All business-specific configurations must be dynamic and stored in the database. Prioritize working end-to-end business workflows over decorative features. Design for maintainability, security, scalability, reusable components, and real-world business requirements. The system should be suitable for adapting to multiple independent businesses without rewriting the application for each business. I NEED FRONTEND ONLY IN MERN STACK FOR MY PROJECT

Make My PRD

Design by The Resonance | Powered by GPC – The AI Transformation Company

    PRD: ## AI-Powered Universal E-commerce & Business Management...