Skip to content

Rai-Anish/fruit_veggie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

38 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›’ Multi-Vendor Groceries eCommerce Platform

It's a scalable and modular backend system for a multi-vendor eCommerce marketplace with support for vendor approvals, organic product verification, secure authentication (OTP-based), product categorization, order management, and more.


πŸ“¦ Features

  • πŸ” Authentication System

    • Email & OTP-based registration/login
    • JWT-based authentication
    • Password reset functionality
  • πŸ‘€ User Roles

    • customer, vendor, admin
  • πŸͺ Vendors

    • Vendor application & approval process
    • Organic product approval workflow
    • Store product management
  • πŸ›οΈ Products

    • Category management with nested parent categories
    • Organic/non-organic tagging
    • Product reviews & ratings (1–5)
  • πŸ›’ Cart & Orders

    • Add-to-cart, cart item quantity update, cart total calculation
    • Order placement, tracking (status: placed, processing, shipped, delivered)
    • Delivery address management
  • πŸ’³ Payments

    • Support for Cash on Delivery and Credit Card (logic placeholder)
  • 🧾 Admin Features

    • Approve vendors & organic products
    • View all users, vendors, and orders

πŸ—‚οΈ Database Schema

  • The schema is designed to support a multi-vendor marketplace with modular entities like users, products, carts, orders, and reviews.
  • Designed using DBML (used with dbdiagram.io)
  • Follows normalized structure with dedicated orderItems, cartItems, and deliveryAddresses tables
  • Enumerations used for clear role, status, and purpose handling

Here is the high-level Entity-Relationship (ER) diagram for the backend:

ER diagram

Note: If you want clear ER diagram then click the link below

Full DBML available in Interactive ER Diagram

πŸ› οΈ Tech Stack

  • Backend: Node.js, Express.js
  • Database: MongoDB
  • ORM: Mongoose
  • Authentication: JWT, OTP via email
  • Dev Tools: DBML (for schema design), Postman, resend

About

Multi vendor fruits and vegetable marketplacce

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors