Odoo

πŸš€ StockMaster β€” The Ultimate Inventory & Warehouse Management Platform

StockMaster Hero

Modern. Powerful. Effortless.

StockMaster is your all-in-one solution for managing products, warehouses, and teams. Built for businesses that demand speed, reliability, and a beautiful user experience.


🌟 Why StockMaster?


✨ Feature Highlights

Dashboard Overview


πŸ–ΌοΈ Features to explore

Onboarding Wizard


πŸ—οΈ Architecture

api/           # Node.js/Express backend (TypeScript)
frontend/      # Next.js 14+ app (TypeScript, shadcn/ui)
  app/         # Next.js app directory
  components/  # UI and feature components
  lib/         # Utilities and API client
  hooks/       # React hooks
  public/      # Static assets (images, screenshots)
  styles/      # Global styles

βš™οΈ Quickstart & Environment Setup

1. Clone & Install

git clone https://github.com/Prg-Yash/odooxspit-stockmaster
cd odooxspit-stockmaster
pnpm install # or npm install

2. Configure Environment Variables

Backend (api/.env)

Edit values as needed (DB, JWT, SMTP, etc)

Example .env for backend:

DATABASE_URL="postgresql://user:password@localhost:5432/stockmaster"
JWT_SECRET="your-jwt-secret-key"
JWT_EXPIRES_IN="15m"
REFRESH_TOKEN_EXPIRES_DAYS="30"
PORT=4000
SMTP_HOST=smtp.example.com
SMTP_PORT=587
SMTP_USER='your-email@example.com'
SMTP_PASS='your-smtp-password'

# Email Configuration
FROM_EMAIL='your-email@example.com'
FROM_NAME='Your App Name'

# Base URL (for email links)
BASE_URL=http://localhost:4000

Frontend (frontend/.env)

Edit env:

Example .env for frontend:

NEXT_PUBLIC_API_URL to your backend URL

3. Database Setup (Backend)

cd api
npx prisma migrate dev --name init
npx prisma generate

4. Run Both Apps

Backend:

cd api
npm run dev

Frontend:

cd frontend
npm run dev

🚦 How It Works

  1. Sign Up & Onboard: Create your account, set up your first warehouse, and invite your team.
  2. Manage Inventory: Add products, track stock, and monitor KPIs from a beautiful dashboard.
  3. Collaborate: Assign roles, manage permissions, and keep everyone in sync.
  4. Stay Informed: Get instant alerts for low stock, pending actions, and more.

πŸ”‘ Authentication Flow

  1. User logs in (credentials sent to /auth/login)
  2. Backend sets accessToken and refreshToken cookies (httpOnly, secure)
  3. Frontend stores user info for UI
  4. API requests use token from cookies
  5. Backend accepts tokens from Authorization header or cookies
  6. /auth-debug page helps diagnose auth issues

See AUTHENTICATION_FIX.md for full details and troubleshooting.


πŸ§‘β€πŸ’» Development & Debugging


πŸ“š Documentation


πŸ“ Roadmap


🀝 Contribute & Join Us

Pull requests are welcome! For major changes, please open an issue first to discuss what you would like to change.


πŸ“„ License

MIT


πŸ“’ Credits


πŸ“¬ Contact

For support or questions, open an issue or contact the maintainer.