Skip to content

anjali1521/Local-Return-Resell-Warehouse-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

ReLocal - Local Return & Resell Warehouse System

🎯 Project Overview

ReLocal is a decentralized return management and reselling platform that transforms how returned products are handled. Instead of centralizing all returns in a central warehouse and shipping them back to the producer's location, ReLocal leverages local warehouses within each state to immediately resell returned products to local customers at discounted prices.

The Problem We Solve

Traditional return systems:

  • ❌ Centralize all returns in one warehouse
  • ❌ Ship products back to original producer location
  • ❌ Increase transportation costs and carbon emissions
  • ❌ Create delays in inventory management
  • ❌ Miss opportunity to resell locally at better margins

Our Solution

Decentralized Local Reselling:

  • βœ… Store returns in state-level local warehouses
  • βœ… Immediately resell to local customers at discounted prices
  • βœ… Reduce carbon footprint by eliminating unnecessary transport
  • βœ… Benefit all stakeholders - Company, Customers, Producers
  • βœ… Faster inventory turnover and better customer satisfaction

πŸ’‘ How It Works

Example Scenario:

  1. Customer in Dehradun (Uttarakhand) purchases a product and later returns it
  2. Instead of: Shipping to central Delhi warehouse β†’ then to producer location
  3. We do: Store in Uttarakhand Local Warehouse β†’ Recommend to other local customers at 20-30% discount
  4. Result:
    • πŸš— Reduced shipping (no long-distance transport)
    • πŸ’° Company saves on logistics costs
    • πŸ›οΈ Local customers get discounted products
    • 🌍 Carbon footprint reduced significantly
    • ♻️ Faster product lifecycle

🏒 Architecture

Multiple Local Warehouses (State-wise)

Our system manages 10 local warehouses across major Indian states:

  • Delhi - Northern hub (110001)
  • Uttar Pradesh - Eastern UP hub (226001)
  • Maharashtra - Western hub (400001)
  • Karnataka - South-central hub (560001)
  • Tamil Nadu - Southern hub (600001)
  • West Bengal - Eastern hub (700001)
  • Rajasthan - Western hub (302001)
  • Gujarat - Western hub (380001)
  • Punjab - North-western hub (141001)
  • Haryana - Northern hub (122001)

Product Lifecycle Flow

Customer Return (Local Area)
        ↓
    Local Warehouse (Same State/Region)
        ↓
    Quality Assessment & Pricing (Discounted)
        ↓
    Recommendation to Local Customers
        ↓
    Quick Local Sale
        ↓
    Customer Happy | Company Saves Costs | Reduced Emissions

🎭 User Roles & Features

πŸ‘¨β€πŸ’Ό Admin

  • Manage all warehouses and inventory
  • Monitor return requests
  • Track resale performance
  • View carbon footprint savings

πŸ‘€ Customer/Consumer

  • Browse returned & discounted products in local warehouse
  • Filter by location & condition
  • Place orders for nearby products
  • Reduce product cost while supporting sustainability

🏭 Producer/Seller

  • Monitor product returns
  • Get analytics on local resale performance
  • Reduce reverse logistics costs
  • Understand local market demand

πŸ› οΈ Technology Stack

Frontend

  • React.js - UI framework
  • React Router DOM - Page navigation
  • Leaflet.js - Geographic mapping for warehouse locations
  • Tailwind CSS - Responsive styling
  • Axios - API communication

Backend

  • Node.js - Runtime environment
  • Express.js - REST API framework
  • MongoDB - NoSQL database for scalability

Key Features

  • Location-based product discovery (using coordinates)
  • Role-based authentication & authorization
  • Real-time inventory management
  • Order processing system
  • Warehouse capacity tracking

πŸ“ Project Structure

Local-Return-Resell-Warehouse-System/
β”œβ”€β”€ client/                    # React frontend
β”‚   β”œβ”€β”€ public/
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ pages/            # Page components (Dashboards, Login, etc.)
β”‚   β”‚   β”œβ”€β”€ services/         # API integration
β”‚   β”‚   β”œβ”€β”€ App.js            # Main app component
β”‚   β”‚   └── index.js          # React entry point
β”‚   β”œβ”€β”€ tailwind.config.js    # Tailwind configuration
β”‚   └── package.json
β”‚
└── server/                    # Node.js backend
    β”œβ”€β”€ models/               # Database schemas (Warehouse, Product, User, Order)
    β”œβ”€β”€ routes/               # API endpoints
    β”œβ”€β”€ controllers/          # Business logic
    β”œβ”€β”€ middleware/           # Authentication & validation
    β”œβ”€β”€ seed.js               # Database seeding with sample data
    └── package.json

πŸš€ Key Functionalities

1. Local Warehouse Management

  • Track inventory by warehouse location
  • Monitor capacity and stock levels
  • Location coordinates for geographic mapping

2. Smart Product Reselling

  • Automatic price reduction for returned items (Condition-based)
  • Condition ratings: A (Excellent), B (Good), C (Fair)
  • Products matched to customers in the same state/region

3. Order Management System

  • Customers can browse and purchase discounted products
  • Orders fulfilled from nearest local warehouse
  • Reduced shipping distance and cost

4. Role-Based Dashboards

  • Admin Dashboard - Warehouse analytics & management
  • Customer Dashboard - Browse local discounted products
  • Producer Dashboard - Return trends & analytics

5. Location-Based Discovery

  • Find products near your location (using pincode/coordinates)
  • Filter by warehouse, category, condition, and price

♻️ Environmental & Business Impact

🌍 Carbon Footprint Reduction

  • Before: Dehradun β†’ Delhi Central β†’ Producer Location (500+ km, high emissions)
  • After: Dehradun Local Warehouse β†’ Local Customer (10-50 km, minimal emissions)
  • Estimated Reduction: ~80% fewer transportation emissions per return

πŸ’° Cost Savings

  • Company: Saves on reverse logistics & storage
  • Customers: Get products at 20-30% discount
  • Producers: Faster turnover, reduced storage pressure

πŸ“Š Sustainability Benefits

  • Keeps products in local economy
  • Reduces landfill waste through reselling
  • Encourages circular economy model
  • Lower carbon footprint = Better brand image

πŸ”§ Setup & Installation

Prerequisites

  • Node.js (v14+)
  • MongoDB (local or cloud)
  • npm or yarn

Backend Setup

cd server
npm install
# Create .env file with MONGO_URI and other config
npm run seed    # Load sample warehouse & product data
npm start       # Start Express server on port 5000

Frontend Setup

cd client
npm install
npm start       # Start React app on port 3000

Database Seeding

The seed.js file initializes:

  • 10 local warehouses across Indian states
  • Sample returned products with conditions and prices
  • Each warehouse linked to specific geographic locations

πŸ”„ Return & Resell Workflow

Step 1: Return Initiated

Customer returns a product from their location

Step 2: Local Assessment

Product assessed at the local warehouse in their state

Step 3: Smart Pricing

  • Original Price β†’ Discounted Price based on condition
  • Condition A: 15-20% discount
  • Condition B: 25-35% discount
  • Condition C: 40-50% discount

Step 4: Local Marketing

System recommends product to other customers in the same state

Step 5: Quick Sale

Local customer buys at discounted price with minimal shipping

Step 6: Impact

βœ… Product resold locally
βœ… Carbon emissions avoided
βœ… Everyone benefits (Win-Win-Win)


πŸ“ˆ Future Enhancements

  • πŸ€– AI-based dynamic pricing based on local demand
  • πŸ“ Real-time warehouse inventory synchronization
  • πŸ’³ Integrated payment gateway
  • πŸ“± Mobile app for better UX
  • πŸ”” Push notifications for matching local products
  • πŸ—ΊοΈ Heat map for warehouse optimization
  • πŸ† Loyalty rewards for sustainable shopping

🀝 Contributing

We welcome contributions! Please fork the repository and submit pull requests with improvements.


πŸ“ License

This project is open source and available under the MIT License.


πŸ’¬ Contact & Support

For questions or suggestions about the ReLocal project, please create an issue in the repository.


Together, let's make returns more local and sustainable! πŸŒβ™»οΈ

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages