Benchmark Details

inai
Benchmark Information
Category: Coding
Visibility: PUBLIC
Temperature: 0.8
Max Completion Tokens: 8192
Created: Loading...
Updated: Loading...
Input Tokens:

0

Est. Output Tokens:

0

System Prompt
Build a modern, scalable, and feature-rich full-stack e-commerce web application inspired by Amazon and Flipkart, with user-friendly UI/UX, secure backend, and cloud-ready deployment.
:building_construction: Overall Project Description
Create a full-stack e-commerce platform that allows users to browse, search, compare, and purchase products online.
 The system should include:
Customer Frontend (product listings, cart, checkout)
Seller Dashboard (product management, inventory, analytics)
Admin Panel (user management, analytics, order tracking)
Backend API (secure REST/GraphQL with authentication, payment, etc.)
Database & Cloud Integration (for scalability and performance)
:art: Frontend Requirements
Tech Stack:
React (Next.js 14 or latest) / Vue.js / Angular
Tailwind CSS or Material UI for styling
Redux Toolkit / Zustand for state management
React Query / SWR for data fetching
TypeScript for type safety
Pages & Features:
Home Page:
Dynamic banners, featured products, and top categories
Personalized recommendations (AI-ready placeholder)
Product Listing Page:
Filters (price, brand, category, rating, offers)
Sorting (popularity, price low → high, high → low, newest)
Pagination and infinite scroll
Product Detail Page:
Product images carousel (zoom on hover)
Description, reviews, rating, seller info
Add to Cart / Buy Now buttons
Related products carousel
Search Functionality:
Autocomplete, spell correction, voice search integration placeholder
Fuzzy search powered by backend API
Cart & Checkout:
Cart summary, editable quantities
Address selection, coupon application, shipping options
Payment gateway integration (Stripe/PayPal/Razorpay placeholder)
User Account:
Profile management
Order history and tracking
Wishlist and saved items
Authentication:
Signup, Login (Email/Password + OAuth Google/Facebook)
Forgot password, email verification
Seller Dashboard:
Product management (add, update, delete)
Sales analytics and earnings
Inventory management
Admin Panel:
Manage users, sellers, and products
Approve sellers
Dashboard with key analytics (revenue, orders, growth)
:gear: Backend Requirements
Tech Stack:
Node.js (Express.js / NestJS) or Django (Python)
MongoDB or PostgreSQL (with Prisma ORM / Mongoose)
Redis (for caching and sessions)
Cloud Storage (AWS S3 / Google Cloud Storage for product images)
JWT-based authentication and role-based access control (RBAC)
API rate limiting, validation (Joi/Zod)
Core APIs:
User Management: registration, login, profile, password reset
Product Management: CRUD, categories, inventory, images
Cart & Checkout: add/remove items, total calculation, coupons
Order System: order placement, status updates, tracking
Payments: Stripe/Razorpay/PayPal integration
Reviews & Ratings: authenticated users only
Search API: text-based, keyword search, filters
Admin APIs: analytics, approval, moderation
:jigsaw: Database Schema (Example)
Collections / Tables:
Users (name, email, passwordHash, role, addresses, wishlist)
Products (title, description, price, images, category, stock, sellerId, ratings)
Orders (userId, items[], totalAmount, paymentStatus, shippingAddress, orderStatus)
Reviews (userId, productId, rating, comment, timestamp)
Sellers (userId, storeName, products[], rating, revenue)
Admins (role, permissions)
:closed_lock_with_key: Security & Performance
HTTPS + Helmet for security headers
Input sanitization (XSS, SQL injection protection)
CSRF protection
JWT token expiration & refresh
API rate limiting
Lazy loading and image optimization
Caching (Redis, CDN)
Validation Rules
Rule 1 Exact Match All Text
Rule 2 Contains Text All Text
Benchmark Steps