Skip to content

waleedkhokar/Stock_Mind_Invertory_System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“¦ Stock Mind - Inventory Management System

A production-ready, full-stack inventory management system built with modern web technologies. Streamline your business operations with real-time stock tracking, sales analytics, and complete purchase management.

TypeScript React Node.js MongoDB Express.js Redux


🎯 What is this project?

Stock Mind is a complete inventory management solution that helps businesses track products, manage sales & purchases, and visualize business analytics - all from a single, intuitive dashboard.

✨ Why this project?

Built for real-world business needs with enterprise-grade architecture, type safety, and scalable design - perfect for portfolio, client work, or production deployment.


πŸ”— Project Links

Platform Link
πŸ“¦ GitHub Repo https://github.com/waleedkhokar/Stock_Mind_Invertory_System.git

πŸ“Έ Screenshots

1 1.2 2
Register Page Login Dashboard
3 4 5
Add Product Products Sales
6 7 8
Purchases Sellers User-Admin-Info

πŸ› οΈ Tech Stack

πŸ–₯️ Backend

Technology Purpose
Node.js Runtime Environment
Express.js Web Framework
TypeScript Type Safety
MongoDB Atlas Cloud Database
Mongoose ODM for MongoDB
Zod Schema Validation
JWT Authentication
Bcrypt Password Hashing
Morgan HTTP Logging
CORS Cross-Origin Support

πŸ’» Frontend

Technology Purpose
React 18 UI Library
TypeScript Type Safety
Redux Toolkit State Management
Ant Design UI Components
React Hook Form Form Handling
Zod Form Validation
Recharts Analytics Charts
React Router DOM Navigation
SweetAlert2 Beautiful Alerts
Vite Build Tool
Tailwind CSS Utility Styling

🌟 Core Features

πŸ” Authentication & Users

  • βœ… User Registration with validation
  • βœ… Secure Login with JWT
  • βœ… Password encryption (Bcrypt)
  • βœ… Profile management & password change

πŸ“¦ Product Management

  • βœ… Add / Edit / Delete products
  • βœ… Advanced search & filtering
  • βœ… Pagination support
  • βœ… Product variants
  • βœ… Track product sales

πŸ’° Sales Management

  • βœ… View all sales with pagination
  • βœ… Update / Delete sales records
  • βœ… Real-time sales insights

🧾 Purchase Management

  • βœ… Add / Edit / Delete purchases
  • βœ… Complete purchase history

πŸ§‘β€πŸ€β€πŸ§‘ Seller Management

  • βœ… Add / Edit / Delete sellers
  • βœ… Filter & pagination support

πŸ“Š Analytics & Insights

  • βœ… Sales trends by: Yearly | Monthly | Weekly | Daily
  • βœ… Interactive Recharts visualizations

πŸš€ Getting Started

Prerequisites

  • Node.js (v18 or higher)
  • MongoDB Atlas account (free tier works)
  • Git

Installation

1. Clone the repository

git clone https://github.com/waleedkhokar/Stock_Mind_Invertory_System.git
cd Stock_Mind_Invertory_System

bash
cd server
npm install
Create .env file in /server:

env
NODE_ENV=development
PORT=8000
DATABASE_URL=your_mongodb_connection_string
JWT_SECRET=your_super_secret_key
Run backend:

bash
npm run dev        # Development
npm run build      # Build for production
npm start          # Production


3. Frontend Setup
bash
cd client
npm install
Run frontend:

bash
npm run dev        # Development (Vite)
npm run build      # Build for production
npm run preview    # Preview production build

PART 4: API Endpoints + Environment Variables

## πŸ“‹ API Endpoints (Key Examples)

| Method | Endpoint               | Description         |
| ------ | ---------------------- | ------------------- |
| POST   | `/api/auth/register`   | Register new user   |
| POST   | `/api/auth/login`      | Login user          |
| GET    | `/api/products`        | Get all products    |
| POST   | `/api/products`        | Create product      |
| PUT    | `/api/products/:id`    | Update product      |
| DELETE | `/api/products/:id`    | Delete product      |
| GET    | `/api/sales`           | Get all sales       |
| POST   | `/api/sales`           | Create sale         |
| GET    | `/api/sales/analytics` | Get sales insights  |
| GET    | `/api/sellers`         | Get all sellers     |
| CRUD   | `/api/purchases`       | Purchase management |

πŸ”§ Environment Variables

Backend (.env)

Variable Description Example
NODE_ENV Environment development
PORT Server port 8000
DATABASE_URL MongoDB connection mongodb+srv://...
JWT_SECRET JWT signing key your_secret_key

🎯 Why This Project Stands Out

Feature Benefit
βœ… 100% TypeScript Zero runtime type errors
βœ… Zod Validation End-to-end data safety
βœ… MongoDB Atlas Cloud-native, scalable
βœ… Redux Toolkit Predictable state management
βœ… Ant Design Professional UI out-of-the-box
βœ… Recharts Beautiful analytics
βœ… Modular Architecture Easy to maintain & extend

πŸ‘¨β€πŸ’» About the Developer

Waleed Khokhar

Full-Stack Engineer | Python FastAPI | MERN Stack

I build scalable, production-ready web applications with modern architectures. Passionate about clean code, type safety, and creating seamless user experiences across both JavaScript/TypeScript and Python ecosystems.

πŸ’Ό Core Expertise:

  • 🟒 MERN Stack (MongoDB, Express, React, Nextjs, Node.js)
  • 🐍 Python & FastAPI
  • πŸ“˜ TypeScript & JavaScript
  • πŸ—„οΈ PostgreSQL/SQL & MongoDB
  • πŸ” Authentication & Security
  • ☁️ Cloud Deployment (Render, Vercel, AWS(learning))
  • 🐳 Docker & Containerization

🌐 Connect with me:

LinkedIn GitHub Portfolio Email


ΩˆΩŽΩ‚ΩΩ„ Ψ±ΩŽΩ‘Ψ¨ΩΩ‘ Ψ²ΩΨ―Ω’Ω†ΩΩŠ عِلْمًا

"And say: My Lord, increase me in knowledge." β€” Surah Taha (20:114)


πŸ“„ License

This project is MIT Licensed - free for personal and commercial use.


⭐ Show Your Support

If you found this project helpful, give it a ⭐ on GitHub!


Built with ❀️ by Waleed Khokhar | Full-Stack Engineer | Python Devolper | MERN Stack | Devops

About

πŸ“¦ Stock Mind - A production-ready full-stack inventory management system built with MERN stack + TypeScript. Manage products, sales, purchases, sellers with real-time analytics and interactive dashboards. Perfect for business automation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages