Skip to content

sking85522/LokBazaar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

LokBazaar

🎯 Objective Build a dynamic, full-stack e-commerce web application inspired by professional platforms like OmniMart. The project should support a responsive storefront for customers, a secure backend admin panel, and vendor management. All content (products, categories, offers, banners) should be fully dynamic and controlled from the database. The system must include multi-vendor support, coupon/discount management, product variations, reports, and API endpoints. 📁 Project Structure Frontend (Customer Side):

  • index.php → Homepage with dynamic banners, featured products, categories
  • product.php → Product detail page with variations (size, color)
  • cart.php → Shopping cart with quantity update, remove
  • checkout.php → Checkout form & order confirmation
  • signup.php / login.php / logout.php → User authentication
  • profile.php → User profile, orders, wishlist
  • contact.php → Contact form (DB + email)
  • search.php → Product search and filters

Backend (Admin Panel):

  • admin/index.php → Admin login
  • admin/dashboard.php → Analytics overview
  • admin/products.php → Manage products (add/edit/delete)
  • admin/categories.php → Manage categories
  • admin/vendors.php → Manage vendors/sellers
  • admin/orders.php → Manage customer orders
  • admin/coupons.php → Create/manage coupons and discounts
  • admin/reports.php → Sales & order reports
  • admin/settings.php → Site, theme, SEO settings

Vendor Panel:

  • vendor/dashboard.php → Vendor-specific analytics
  • vendor/products.php → Vendor product management
  • vendor/orders.php → Orders for vendor's products

Shared:

  • db.php → Database connection
  • includes/ → header.php, footer.php for frontend and backend
  • api/ → Expose REST endpoints for products, orders 🏗 Features & Requirements
  1. Frontend (User Side)
  • Responsive landing page with dynamic content from DB
  • Product detail pages with variations (size, color, stock)
  • Shopping cart and checkout with validation
  • User authentication with sessions, cookies, secure passwords
  • Profile with order history and wishlist
  • Product search with filters (price, category, rating)
  • Review & rating system for products
  • Contact/feedback form stored in DB + email notification
  • Multi-currency and localization support
  1. Backend (Admin Panel)
  • Dashboard with analytics (sales, top products, users)
  • Manage products, categories, vendors, users, and orders
  • Create and manage coupons/discounts
  • Change order statuses (Pending, Processing, Shipped, Delivered)
  • Control homepage banners and featured sections dynamically
  • Configure SEO metadata and theme settings
  • Generate and export reports (CSV/PDF)
  1. Vendor Panel
  • Vendor login and dashboard
  • Manage vendor's products (CRUD)
  • View and manage orders specific to vendor's products
  • Vendor analytics (sales, orders)
  1. Database Schema (MySQL)
  • users (id, name, email, password, role, created_at)
  • vendors (id, user_id, name, status)
  • products (id, vendor_id, name, description, price, stock, image, category_id, created_at)
  • product_variations (id, product_id, attribute, value, stock)
  • categories (id, name, created_at)
  • orders (id, user_id, total_amount, status, created_at)
  • order_items (id, order_id, product_id, quantity, price)
  • coupons (id, code, discount_type, value, expiry)
  • reviews (id, product_id, user_id, rating, comment, created_at)
  • feedback (id, name, email, message, created_at)
  • admin (id, username, password)
  1. Security & Best Practices
  • Use password_hash() and password_verify() for secure password storage
  • Implement prepared statements to prevent SQL injection
  • Role-based access: customer, vendor, admin
  • Session management for user and admin areas
  • Input validation and sanitization for all forms
  • Token-based authentication for API endpoints 🌟 Advanced Features
  • API endpoints for mobile app integration
  • Wishlist, favorites, recently viewed products
  • Product import/export via CSV
  • SEO-friendly URLs and sitemap generation
  • Newsletter and email marketing integration
  • Live chat or product Q&A system
  • Payment gateways integration (COD, Stripe, Razorpay sandbox

LokBazaar hindi details

🛒 E-Commerce Multi-Vendor Website (Hindi Explanation)

यह एक Full Stack Dynamic E-Commerce Website है जिसमें:

👤 Customer (User)

🏪 Vendor (Seller)

🛠 Admin (Owner)

तीनों के लिए अलग-अलग Panel होंगे और सारा Data Database (MySQL) से कंट्रोल होगा।

🔹 1. Customer Side (Frontend)

👉 यह वो हिस्सा है जो Customers देखते हैं

मुख्य Pages File काम index.php Homepage (Banner, Categories, Featured Products) product.php Product Details + Size/Color cart.php Cart (Add / Remove / Update) checkout.php Order Place करना signup.php नया User Register login.php Login logout.php Logout profile.php Profile + Orders search.php Product Search + Filter contact.php Contact Form Features

✔ Dynamic products ✔ Cart & Checkout ✔ Login / Signup ✔ Order History ✔ Wishlist ✔ Review & Rating ✔ Multi-currency ✔ Search & Filter

🔹 2. Admin Panel (Backend)

👉 यह Website Owner / Admin के लिए है

Admin Pages File काम admin/index.php Admin Login admin/dashboard.php Sales & Analytics admin/products.php Product Manage admin/categories.php Category Manage admin/vendors.php Vendor Manage admin/orders.php Orders Manage admin/coupons.php Coupon / Discount admin/reports.php Sales Report admin/settings.php Website Settings Admin क्या कर सकता है?

✔ Products Add / Edit / Delete ✔ Vendors Approve ✔ Orders Status Change ✔ Coupons Create ✔ Banner & Homepage Control ✔ Reports Export (CSV / PDF)

🔹 3. Vendor Panel (Seller)

👉 जिन लोगों के Products बिकेंगे

Vendor Pages File काम vendor/dashboard.php Vendor Analytics vendor/products.php Vendor Products vendor/orders.php Vendor Orders Vendor Features

✔ अपने Products Add ✔ अपने Orders देखें ✔ अपनी Sales Report

🔹 4. Database (MySQL Tables) users vendors products product_variations categories orders order_items coupons reviews feedback admin

👉 Role Based System

user → customer

vendor → seller

admin → owner

🔐 5. Security

✔ password_hash() ✔ password_verify() ✔ Prepared Statements ✔ Sessions ✔ Role-Based Access ✔ API Token Security

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors