Skip to content

Kalpan2007/StockMaster_Odoo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

41 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

๐Ÿ“ฆ StockMaster

Next-Generation Inventory Management System with Dynamic data

Live Demo License Node.js React MongoDB


๐ŸŽฏ Transform Your Warehouse Operations

A powerful, real-time inventory management solution built for modern businesses. Replace manual registers and Excel sheets with a centralized, intelligent system that streamlines every stock operation.

Built for Odoo Hackathon Virtual Round ๐Ÿ†


โœจ Why StockMaster?

๐Ÿ“Š Real-Time Tracking ๐Ÿ”„ Automated Workflows ๐Ÿ‘ฅ Multi-Role Support โšก Lightning Fast
Live stock updates across all warehouses Automated receipt, delivery & transfer processing Manager & Staff role-based access Instant updates with Socket.IO
Multi-location inventory Smart low-stock alerts Task assignment & tracking Optimized performance
Complete audit trail Auto-calculated stock levels Activity monitoring Real-time notifications

๐ŸŽฏ Core Features

๐Ÿข Comprehensive Inventory Management

๐Ÿ“ฆ Product Management

  • โž• Smart Product Creation - SKU generation, categorization, and unit management
  • ๐Ÿ“ Multi-Location Tracking - Track stock across multiple warehouses and locations
  • ๐Ÿ“Š Stock Availability - Real-time stock levels per location
  • ๐Ÿ”„ Reordering Rules - Automated low-stock alerts and reorder suggestions
  • ๐Ÿ” Advanced Search - SKU-based search with smart filters

๐Ÿ“ฅ Receipt Operations (Incoming Stock)

  • ๐Ÿ“‹ Supplier Management - Track vendors and purchase orders
  • โœ… Quick Validation - Fast receipt processing with barcode support
  • ๐Ÿ“ˆ Auto Stock Updates - Automatic inventory adjustments
  • ๐Ÿ“ Receipt History - Complete audit trail of all incoming goods
  • ๐Ÿ”” Real-time Notifications - Instant updates on new receipts

๐Ÿ“ค Delivery Operations (Outgoing Stock)

  • ๐ŸŽฏ Pick & Pack Workflow - Streamlined order fulfillment
  • ๐Ÿ“ฆ Batch Processing - Handle multiple deliveries efficiently
  • ๐Ÿ“‰ Auto Deduction - Automatic stock reduction on validation
  • ๐Ÿšš Delivery Tracking - Monitor outgoing shipments
  • โœ”๏ธ Quality Checks - Built-in validation steps

๐Ÿ”„ Internal Transfers

  • ๐Ÿญ Inter-Warehouse Moves - Transfer stock between locations
  • ๐Ÿ“ Rack Management - Organize inventory by racks and zones
  • ๐Ÿ” Movement Tracking - Complete visibility of stock movements
  • โšก Instant Updates - Real-time location changes
  • ๐Ÿ“Š Transfer Reports - Detailed movement history

๐Ÿ”ง Stock Adjustments

  • ๐Ÿ“Š Physical Count - Easy stock counting interface
  • ๐Ÿ”„ Auto Reconciliation - Automatic variance calculation
  • ๐Ÿ“ Adjustment Logging - Complete audit trail
  • ๐Ÿ” Discrepancy Reports - Identify and resolve mismatches
  • ๐Ÿ“ˆ Trend Analysis - Track adjustment patterns

๐Ÿ‘ฅ Role-Based Access Control

๐Ÿ‘จโ€๐Ÿ’ผ Inventory Manager

  • ๐Ÿ“Š Comprehensive Dashboard - Real-time KPIs and metrics
  • ๐Ÿ‘ฅ Staff Management - Assign and monitor warehouse staff
  • ๐Ÿ“ˆ Analytics & Reports - Detailed inventory insights
  • โš™๏ธ System Configuration - Warehouse and location setup
  • ๐Ÿ” Complete Visibility - Access to all operations

๐Ÿ‘ท Warehouse Staff

  • ๐Ÿ“‹ Task Dashboard - Assigned tasks and priorities
  • โšก Quick Actions - Fast receipt and picking workflows
  • ๐Ÿ“ฆ Stock Counting - Mobile-friendly counting interface
  • ๐Ÿ“Š Activity History - Personal work log
  • ๐Ÿ”” Task Notifications - Real-time task updates

๐Ÿ“Š Advanced Analytics

๐ŸŽฏ Dashboard KPIs

  • ๐Ÿ“ฆ Total Products in Stock - Overall inventory value
  • โš ๏ธ Low Stock Alerts - Items requiring attention
  • ๐Ÿ“ฅ Pending Receipts - Awaiting validation
  • ๐Ÿ“ค Pending Deliveries - Orders to fulfill
  • ๐Ÿ”„ Scheduled Transfers - Upcoming movements

๐Ÿ“ˆ Smart Filtering

  • ๐Ÿ“‹ Document Type - Filter by receipts, deliveries, transfers, adjustments
  • โœ… Status-Based - Draft, waiting, ready, done, canceled
  • ๐Ÿข Location Filter - By warehouse or specific location
  • ๐Ÿ“ Category Filter - By product category
  • ๐Ÿ“… Date Range - Time-based filtering

๐Ÿ”” Real-Time Features

  • โšก Live Updates - Socket.IO powered real-time synchronization
  • ๐Ÿ”„ Instant Notifications - Push notifications for all operations
  • ๐Ÿ‘ฅ Collaborative Workflows - Multiple users working simultaneously
  • ๐Ÿ“Š Live Dashboard - Auto-updating metrics and KPIs
  • ๐ŸŽฏ Task Assignment - Real-time task distribution

๐Ÿ—๏ธ System Architecture

flowchart LR
  %% Layout LR for a wide, presentation-friendly diagram

  subgraph FRONTEND["Frontend Layer"]
    direction TB
    A[React 19 + TypeScript]
    B[Redux Toolkit]
    C[Tailwind CSS]
    D[Socket.IO Client]
  end

  subgraph BACKEND["Backend Layer"]
    direction TB
    E[Node.js + Express]
    F[Socket.IO Server]
    G[RESTful API]
    H[JWT Authentication]
  end

  subgraph DATA["Data Layer"]
    direction TB
    I[MongoDB Atlas]
    J[Mongoose ODM]
    K[Real-time Subscriptions]
  end

  subgraph SEC["Security & Performance"]
    direction LR
    L[Rate Limiting]
    M[Helmet Security]
    N[Compression]
    O[Error Handling]
  end

  %% Primary flow (left -> right)
  A -->|API calls| E
  B -.->|state -> api| G
  D -->|ws| F

  %% Backend -> data
  E -->|reads/writes| I
  G --> J
  F --> K

  %% Cross-cutting concerns
  H --> E
  L --> E
  M --> E
  N --> E
  O --> E

  %% Styling (GitHub-friendly)
  classDef frontend fill:#0ea5a4,stroke:#065f46,color:white,stroke-width:1px;
  classDef backend fill:#2563eb,stroke:#1e40af,color:white,stroke-width:1px;
  classDef data fill:#f59e0b,stroke:#92400e,color:black,stroke-width:1px;
  classDef security fill:#ef4444,stroke:#7f1d1d,color:white,stroke-width:1px;

  class A,B,C,D frontend;
  class E,F,G,H backend;
  class I,J,K data;
  class L,M,N,O security;
Loading

๐Ÿ“ Project Structure

๐Ÿ“ฆ StockMaster/
โ”œโ”€โ”€ ๐Ÿ“‹ README.md                      # You are here!
โ”œโ”€โ”€ ๐Ÿ“ฆ package.json                   # Root dependencies
โ”œโ”€โ”€ ๐Ÿš€ .gitignore                     # Git ignore rules
โ”‚
โ”œโ”€โ”€ ๐Ÿ”™ Backend/                       # Node.js + Express API
โ”‚   โ”œโ”€โ”€ ๐Ÿ“ฆ package.json              # Backend dependencies
โ”‚   โ”œโ”€โ”€ ๐ŸŒ .env                      # Environment variables
โ”‚   โ”œโ”€โ”€ ๐Ÿš€ server.js                 # Express server entry
โ”‚   โ”œโ”€โ”€ โš™๏ธ config/
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ—„๏ธ database.js          # MongoDB connection
โ”‚   โ”‚   โ””โ”€โ”€ ๐Ÿ”‘ jwt.js               # JWT configuration
โ”‚   โ”œโ”€โ”€ ๐ŸŽ›๏ธ controllers/
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ” authController.js
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“ฆ productController.js
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“ฅ receiptController.js
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“ค deliveryController.js
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ”„ transferController.js
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ”ง adjustmentController.js
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿข warehouseController.js
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“Š dashboardController.js
โ”‚   โ”‚   โ””โ”€โ”€ ๐Ÿ“ historyController.js
โ”‚   โ”œโ”€โ”€ ๐Ÿ“š models/
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ‘ค User.js
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“ฆ Product.js
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿข Warehouse.js
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“ฅ Receipt.js
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“ค Delivery.js
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ”„ Transfer.js
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ”ง Adjustment.js
โ”‚   โ”‚   โ””โ”€โ”€ ๐Ÿ“ StockHistory.js
โ”‚   โ”œโ”€โ”€ ๐Ÿ›ฃ๏ธ routes/
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ” authRoutes.js
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“ฆ productRoutes.js
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“ฅ receiptRoutes.js
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“ค deliveryRoutes.js
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ”„ transferRoutes.js
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ”ง adjustmentRoutes.js
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿข warehouseRoutes.js
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“Š dashboardRoutes.js
โ”‚   โ”‚   โ””โ”€โ”€ ๐Ÿ“ historyRoutes.js
โ”‚   โ”œโ”€โ”€ ๐Ÿ›ก๏ธ middlewares/
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ”’ auth.js              # JWT verification
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ‘ฎ roleCheck.js         # Role-based access
โ”‚   โ”‚   โ”œโ”€โ”€ โœ… validation.js        # Input validation
โ”‚   โ”‚   โ””โ”€โ”€ โš ๏ธ errorHandler.js     # Global error handler
โ”‚   โ””โ”€โ”€ ๐Ÿ”ง utils/
โ”‚       โ”œโ”€โ”€ ๐Ÿ“ง notifications.js     # Socket.IO helpers
โ”‚       โ”œโ”€โ”€ ๐Ÿ”ข stockCalculator.js   # Stock calculations
โ”‚       โ””โ”€โ”€ ๐Ÿ“Š logger.js            # Custom logger
โ”‚
โ””โ”€โ”€ ๐ŸŽจ Frontend/                      # React + TypeScript SPA
    โ”œโ”€โ”€ ๐Ÿ“ฆ package.json              # Frontend dependencies
    โ”œโ”€โ”€ ๐ŸŒ .env                      # Environment variables
    โ”œโ”€โ”€ โšก vite.config.ts            # Vite configuration
    โ”œโ”€โ”€ ๐ŸŽฏ tsconfig.json             # TypeScript config
    โ”œโ”€โ”€ ๐ŸŽจ tailwind.config.js        # Tailwind CSS config
    โ”œโ”€โ”€ ๐Ÿ—‚๏ธ src/
    โ”‚   โ”œโ”€โ”€ ๐Ÿš€ main.tsx              # Application entry
    โ”‚   โ”œโ”€โ”€ ๐Ÿ“ฑ App.tsx               # Root component
    โ”‚   โ”œโ”€โ”€ ๐ŸŽจ index.css             # Global styles
    โ”‚   โ”œโ”€โ”€ ๐Ÿงฉ components/
    โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ” Auth/
    โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿšช LoginPage.tsx
    โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ ๐Ÿ“ SignupPage.tsx
    โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ–ผ๏ธ Layout/
    โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“ Layout.tsx
    โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ” Header.tsx
    โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“Š Sidebar.tsx
    โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ ๐Ÿ”” Notifications.tsx
    โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ›ก๏ธ ProtectedRoute.tsx
    โ”‚   โ”‚   โ””โ”€โ”€ ๐ŸŽจ ui/               # Reusable components
    โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ pages/
    โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“Š Dashboard.tsx
    โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿข WarehouseDashboard.tsx
    โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ‘ฅ StaffManagement.tsx
    โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“‹ MyTasks.tsx
    โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“ฆ Products.tsx
    โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ”„ operations/
    โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“ฅ Receipts.tsx
    โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“ค Deliveries.tsx
    โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ ๐Ÿ”ง Adjustments.tsx
    โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“ MoveHistory.tsx
    โ”‚   โ”‚   โ”œโ”€โ”€ โš™๏ธ Settings.tsx
    โ”‚   โ”‚   โ”œโ”€โ”€ โšก QuickReceive.tsx  # Staff
    โ”‚   โ”‚   โ”œโ”€โ”€ ๐ŸŽฏ QuickPick.tsx     # Staff
    โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“Š StockCount.tsx    # Staff
    โ”‚   โ”‚   โ””โ”€โ”€ ๐Ÿ“ˆ MyActivity.tsx    # Staff
    โ”‚   โ”œโ”€โ”€ ๐Ÿ”„ store/                # Redux Toolkit
    โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“ฆ index.ts
    โ”‚   โ”‚   โ””โ”€โ”€ ๐Ÿ—‚๏ธ slices/
    โ”‚   โ”‚       โ”œโ”€โ”€ ๐Ÿ” authSlice.ts
    โ”‚   โ”‚       โ”œโ”€โ”€ ๐Ÿ“ฆ productSlice.ts
    โ”‚   โ”‚       โ”œโ”€โ”€ ๐Ÿ“ฅ receiptSlice.ts
    โ”‚   โ”‚       โ”œโ”€โ”€ ๐Ÿ“ค deliverySlice.ts
    โ”‚   โ”‚       โ”œโ”€โ”€ ๐Ÿ”„ transferSlice.ts
    โ”‚   โ”‚       โ”œโ”€โ”€ ๐Ÿ”ง adjustmentSlice.ts
    โ”‚   โ”‚       โ””โ”€โ”€ ๐Ÿ”” notificationSlice.ts
    โ”‚   โ”œโ”€โ”€ ๐Ÿ”Œ services/
    โ”‚   โ”‚   โ”œโ”€โ”€ ๐ŸŒ api.ts            # Axios configuration
    โ”‚   โ”‚   โ””โ”€โ”€ โšก socket.ts         # Socket.IO client
    โ”‚   โ”œโ”€โ”€ ๐ŸŽฃ hooks/
    โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ” useAuth.ts
    โ”‚   โ”‚   โ”œโ”€โ”€ โšก useSocket.ts
    โ”‚   โ”‚   โ””โ”€โ”€ ๐Ÿ”” useNotifications.ts
    โ”‚   โ”œโ”€โ”€ ๐Ÿ“ types/
    โ”‚   โ”‚   โ””โ”€โ”€ ๐Ÿ“‹ index.ts          # TypeScript types
    โ”‚   โ””โ”€โ”€ ๐Ÿ”ง utils/
    โ”‚       โ”œโ”€โ”€ ๐Ÿ“… dateFormatter.ts
    โ”‚       โ”œโ”€โ”€ ๐Ÿ’ฐ numberFormatter.ts
    โ”‚       โ””โ”€โ”€ โœ… validators.ts
    โ””โ”€โ”€ ๐ŸŽฏ public/
        โ”œโ”€โ”€ ๐Ÿ–ผ๏ธ logo.svg
        โ””โ”€โ”€ ๐Ÿ“ฑ favicon.ico

๐Ÿš€ Quick Start Guide

๐Ÿ“‹ Prerequisites

Requirement Version Download
๐ŸŸข Node.js 18+ Download
๐Ÿ“ฆ npm Latest Included with Node.js
๐Ÿ—„๏ธ MongoDB 6.0+ MongoDB Atlas

โšก Installation

# 1๏ธโƒฃ Clone the repository
git clone https://github.com/yourusername/stockmaster.git
cd stockmaster

# 2๏ธโƒฃ Install Backend Dependencies
cd Backend
npm install

# 3๏ธโƒฃ Install Frontend Dependencies
cd ../Frontend
npm install

# 4๏ธโƒฃ Set up Backend environment
cd ../Backend
cp .env.example .env
# Edit .env with your MongoDB URI and JWT secret

# 5๏ธโƒฃ Set up Frontend environment
cd ../Frontend
cp .env.example .env
# Edit .env with your backend API URL

# 6๏ธโƒฃ Start Backend Server
cd ../Backend
npm run dev

# 7๏ธโƒฃ Start Frontend (in new terminal)
cd Frontend
npm run dev

๐ŸŒ Environment Configuration

Backend (.env)

# Server Configuration
PORT=5000
NODE_ENV=development
FRONTEND_URL=http://localhost:5173

# MongoDB Configuration
MONGODB_URI=mongodb+srv://username:password@cluster.mongodb.net/stockmaster

# JWT Configuration
JWT_SECRET=your_super_secret_jwt_key_here
JWT_EXPIRE=7d

# Socket.IO
SOCKET_CORS_ORIGIN=http://localhost:5173

Frontend (.env)

# Backend API
VITE_API_URL=http://localhost:5000/api
VITE_SOCKET_URL=http://localhost:5000

# App Configuration
VITE_APP_NAME=StockMaster

๐ŸŒ Access Points

Service URL Description
๐ŸŽจ Frontend http://localhost:5173 Main application
๐Ÿ”™ Backend API http://localhost:5000/api REST API
๐Ÿฅ Health Check http://localhost:5000/api/health Server status

๐Ÿ› ๏ธ Technology Stack

๐ŸŽจ Frontend Technologies

React TypeScript Redux Toolkit Tailwind CSS Vite Socket.IO

๐Ÿ”™ Backend Technologies

Node.js Express.js MongoDB Socket.IO JWT

๐Ÿ”ง Development & Security

ESLint Helmet Morgan Compression


๐Ÿ“š API Documentation

๐Ÿ” Authentication

Method Endpoint Description Auth Required
POST /api/auth/signup Register new user โŒ
POST /api/auth/login User login โŒ
GET /api/auth/me Get current user โœ…
POST /api/auth/logout User logout โœ…
POST /api/auth/reset-password OTP-based reset โŒ

๐Ÿ“ฆ Product Management

Method Endpoint Description Auth Required
GET /api/products List all products โœ…
POST /api/products Create product โœ…
GET /api/products/:id Get product details โœ…
PUT /api/products/:id Update product โœ…
DELETE /api/products/:id Delete product โœ…
GET /api/products/:id/stock Get stock by location โœ…

๐Ÿ“ฅ Receipt Operations

Method Endpoint Description Auth Required
GET /api/receipts List all receipts โœ…
POST /api/receipts Create receipt โœ…
PUT /api/receipts/:id Update receipt โœ…
POST /api/receipts/:id/validate Validate receipt โœ…
DELETE /api/receipts/:id Cancel receipt โœ…

๐Ÿ“ค Delivery Operations

Method Endpoint Description Auth Required
GET /api/deliveries List all deliveries โœ…
POST /api/deliveries Create delivery โœ…
PUT /api/deliveries/:id Update delivery โœ…
POST /api/deliveries/:id/validate Validate delivery โœ…
DELETE /api/deliveries/:id Cancel delivery โœ…

๐Ÿ”„ Transfer Operations

Method Endpoint Description Auth Required
GET /api/transfers List all transfers โœ…
POST /api/transfers Create transfer โœ…
PUT /api/transfers/:id Update transfer โœ…
POST /api/transfers/:id/validate Validate transfer โœ…

๐Ÿ”ง Adjustment Operations

Method Endpoint Description Auth Required
GET /api/adjustments List all adjustments โœ…
POST /api/adjustments Create adjustment โœ…
POST /api/adjustments/:id/validate Validate adjustment โœ…

๐Ÿ“Š Dashboard & Reports

Method Endpoint Description Auth Required
GET /api/dashboard/kpis Get dashboard KPIs โœ…
GET /api/dashboard/low-stock Get low stock items โœ…
GET /api/history Get stock movement history โœ…
GET /api/history/product/:id Get product history โœ…

๐ŸŽฎ Usage Guide

๐Ÿ‘จโ€๐Ÿ’ผ For Inventory Managers

  1. ๐Ÿ“Š Monitor Dashboard

    • View real-time KPIs
    • Check low stock alerts
    • Monitor pending operations
  2. ๐Ÿ‘ฅ Manage Staff

    • Assign warehouse staff
    • Monitor task completion
    • Track staff performance
  3. ๐Ÿ“ฆ Oversee Operations

    • Review all receipts, deliveries, transfers
    • Validate high-value transactions
    • Generate reports

๐Ÿ‘ท For Warehouse Staff

  1. ๐Ÿ“‹ Check Tasks

    • View assigned tasks
    • Prioritize urgent items
    • Update task status
  2. โšก Quick Operations

    • Fast receipt processing
    • Quick pick & pack
    • Stock counting
  3. ๐Ÿ“Š Track Activity

    • View personal work history
    • Monitor performance metrics

๐Ÿ”’ Security Features

Feature Implementation Benefit
๐Ÿ”‘ JWT Authentication Token-based auth with expiry Secure session management
๐Ÿ›ก๏ธ Helmet Security HTTP headers protection Prevents common attacks
โฑ๏ธ Rate Limiting 100 requests/15min per IP DDoS protection
๐Ÿ” Role-Based Access Manager & Staff roles Data isolation
๐Ÿ“ Audit Trail Complete operation logging Accountability
๐Ÿ”’ CORS Protection Restricted origins Cross-origin security

๐Ÿšจ Troubleshooting

๐Ÿ”ด MongoDB Connection Failed

Problem: MongoNetworkError: failed to connect to server

Solutions:

  1. Check MongoDB Atlas connection string
  2. Verify IP whitelist in Atlas
  3. Ensure network connectivity
  4. Check username/password in URI
๐Ÿ”‘ JWT Token Invalid

Problem: 401 Unauthorized or JsonWebTokenError

Solutions:

  1. Verify JWT_SECRET in backend .env
  2. Check token expiry
  3. Clear browser localStorage
  4. Re-login to get new token
โšก Socket.IO Not Connecting

Problem: Real-time updates not working

Solutions:

  1. Check CORS configuration
  2. Verify Socket.IO URLs match
  3. Check browser console for errors
  4. Restart both servers
๐ŸŽจ Frontend Build Errors

Problem: TypeScript or build errors

Solutions:

  1. Delete node_modules and reinstall
  2. Clear Vite cache: rm -rf node_modules/.vite
  3. Check TypeScript version compatibility
  4. Run npm run type-check

๐Ÿ“ˆ Performance Optimizations

Feature Technology Impact
โšก Real-time Updates Socket.IO Instant synchronization
๐Ÿ—œ๏ธ Response Compression Express Compression 70% smaller payloads
๐Ÿš€ Code Splitting Vite + React.lazy Faster initial load
๐Ÿ“ฆ State Management Redux Toolkit Optimized re-renders
๐Ÿ”„ Connection Pooling Mongoose Efficient DB queries
๐ŸŽฏ Lazy Loading React Suspense On-demand components

๐Ÿค Contributing

We welcome contributions! Here's how you can help:

  1. ๐Ÿด Fork the repository
  2. ๐ŸŒฟ Create a feature branch: git checkout -b feature/amazing-feature
  3. ๐Ÿ’พ Commit your changes: git commit -m 'Add amazing feature'
  4. ๐Ÿ“ค Push to the branch: git push origin feature/amazing-feature
  5. ๐Ÿ”„ Submit a Pull Request

๐Ÿ“ Contribution Guidelines

  • Follow existing code style
  • Write meaningful commit messages
  • Add tests for new features
  • Update documentation
  • Keep PRs focused and small

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


๐Ÿ† Built For

Odoo Hackathon - Virtual Round

Demonstrating next-generation inventory management capabilities


๐Ÿ™ Acknowledgments

Special thanks to:

  • ๐Ÿš€ Odoo for the hackathon opportunity
  • โš›๏ธ React Team for the amazing framework
  • ๐Ÿ—„๏ธ MongoDB for the powerful database
  • โšก Socket.IO for real-time capabilities
  • ๐ŸŽจ Tailwind CSS for beautiful styling

๐Ÿ’ก Built with โค๏ธ for Modern Warehouse Management

Transform your inventory operations today!

โญ Star this repo ๐Ÿ› Report Bug ๐Ÿ’ก Request Feature


๐Ÿ“ž Questions? Reach out!

Email LinkedIn Twitter

About

A powerful, modern system that replaces manual inventory tracking with automated, real-time stock control. Designed for businesses that need speed, accuracy, multi-warehouse visibility, and collaborative operations.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors