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.
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.
Built for real-world business needs with enterprise-grade architecture, type safety, and scalable design - perfect for portfolio, client work, or production deployment.
| Platform | Link |
|---|---|
| π¦ GitHub Repo | https://github.com/waleedkhokar/Stock_Mind_Invertory_System.git |
| Register Page | Login | Dashboard |
| Add Product | Products | Sales |
| Purchases | Sellers | User-Admin-Info |
| 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 |
| 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 |
- β User Registration with validation
- β Secure Login with JWT
- β Password encryption (Bcrypt)
- β Profile management & password change
- β Add / Edit / Delete products
- β Advanced search & filtering
- β Pagination support
- β Product variants
- β Track product sales
- β View all sales with pagination
- β Update / Delete sales records
- β Real-time sales insights
- β Add / Edit / Delete purchases
- β Complete purchase history
- β Add / Edit / Delete sellers
- β Filter & pagination support
- β Sales trends by: Yearly | Monthly | Weekly | Daily
- β Interactive Recharts visualizations
- Node.js (v18 or higher)
- MongoDB Atlas account (free tier works)
- Git
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
## π 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 || 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 |
| 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 |
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:
ΩΩΩΩΩ Ψ±ΩΩΨ¨ΩΩ Ψ²ΩΨ―ΩΩΩΩ ΨΉΩΩΩΩ ΩΨ§
"And say: My Lord, increase me in knowledge." β Surah Taha (20:114)
This project is MIT Licensed - free for personal and commercial use.
If you found this project helpful, give it a β on GitHub!
Built with β€οΈ by Waleed Khokhar | Full-Stack Engineer | Python Devolper | MERN Stack | Devops