<<<<<<< HEAD
A modern, full-stack inventory management system built with the MERN stack (MongoDB, Express.js, React.js, Node.js). This application helps businesses manage their products, orders, and inventory efficiently.
- ๐ Secure user authentication and authorization
- ๐ฆ Product management with categories and subcategories
- ๐ Real-time inventory tracking
- ๐ Order processing and management
- ๐ Analytics and reporting dashboard
- ๐จ Modern, responsive UI with Tailwind CSS
- Node.js (v14 or higher)
- MongoDB
- npm or yarn
- Clone the repository
<<<<<<< HEAD
git clone https://github.com/utpal-kumar-08/inventory-management.git
=======
git clone https://github.com/utpal-kumar-08/Inventory-Management.git
cd inventory-management- Install dependencies
# Install backend dependencies
cd backend
npm install
# Install frontend dependencies
cd ../frontend
npm install- Set up environment variables
# In backend directory
cp .env.example .env
# Edit .env with your configuration- Start the development servers
# Start backend (from backend directory)
npm run dev
# Start frontend (from frontend directory)
npm run devThe application will be available at:
- Frontend: http://localhost:3000
- Backend API: http://localhost:5000
โโโ frontend/ # React frontend application
โ โโโ src/ # Source files
โ โโโ public/ # Static files
โ โโโ package.json # Frontend dependencies
โ
โโโ backend/ # Node.js backend application
โโโ services/ # Microservices
โโโ config/ # Configuration files
โโโ package.json # Backend dependencies
- React.js
- Tailwind CSS
- Redux Toolkit
- React Router
- Axios
- Node.js
- Express.js
- MongoDB
- JWT Authentication
- Microservices Architecture
The API documentation is available at /api-docs when running the backend server. Key endpoints include:
/api/auth- Authentication endpoints/api/products- Product management/api/orders- Order processing/api/inventory- Inventory management/api/stats- Analytics and reporting
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request =======
A comprehensive, full-stack inventory management solution with AI-powered analytics, predictive forecasting, and responsive design.
- Product Management: Add, edit, delete, and categorize products
- Category & Subcategory System: Hierarchical organization
- Stock Tracking: Real-time inventory levels and alerts
- User Management: Role-based access control
- Image Upload: Product image management
- Smart Chatbot: Gemini AI-powered assistant for inventory queries
- Predictive Analytics: Advanced demand forecasting with multiple algorithms
- Reorder Recommendations: Intelligent stock replenishment suggestions
- Analytics Dashboard: Interactive charts and insights
- Responsive Design: Mobile-first approach with Tailwind CSS
- Dark Mode: Complete theme support with smooth transitions
- Interactive Charts: Chart.js integration for data visualization
- Real-time Updates: Live data refresh and notifications
- Multi-algorithm Forecasting: Weighted Average, Moving Average, Exponential Smoothing, Linear Regression, Seasonal
- Confidence Intervals: Statistical accuracy metrics
- Smart Caching: Performance optimization with intelligent caching
- Error Handling: Comprehensive error management and user feedback
- Node.js with Express.js
- MongoDB with Mongoose ODM
- JWT Authentication for secure access
- Multer for file uploads
- Google Gemini AI for intelligent features
- React 18 with functional components
- React Router for navigation
- Tailwind CSS for styling
- Chart.js for data visualization
- Context API for state management
- Node.js (v18 or higher)
- MongoDB (local or cloud)
- Google Gemini API key
cd backend
npm installCreate .env file:
DB_URL=your_mongodb_connection_string
JWT_SECRET=your_jwt_secret
GEMINI_API_KEY=your_gemini_api_key
PORT=5050cd frontend
npm install# Backend (Terminal 1)
cd backend
npm start
# Frontend (Terminal 2)
cd frontend
npm startThe system includes a comprehensive predictive analytics engine with:
-
5 Forecasting Algorithms:
- Weighted Average (50%, 30%, 20% weights)
- Moving Average (7-day window)
- Exponential Smoothing (ฮฑ = 0.3)
- Linear Regression (statistical trend analysis)
- Seasonal Forecasting (weekly patterns)
-
Smart Recommendations:
- Urgency-based reorder suggestions
- Cost optimization calculations
- Stock level monitoring
- Category-specific forecasting
Integrated Gemini AI assistant providing:
- Context-Aware Responses: Remembers conversation history
- Inventory Intelligence: Answers about products, stock, categories
- Actionable Insights: Provides recommendations and suggestions
- Multi-language Support: Handles various query formats
Mobile-first approach with:
- Collapsible Sidebar: Touch-friendly navigation
- Adaptive Layouts: Optimized for all screen sizes
- Dark Mode Toggle: Complete theme support
- Smooth Animations: CSS transitions and loading states
POST /api/v1/user/register
POST /api/v1/user/login
POST /api/v1/user/forgot-password
GET /api/v1/product
POST /api/v1/product
PUT /api/v1/product/:id
DELETE /api/v1/product/:id
GET /api/v1/category
POST /api/v1/category
PUT /api/v1/category/:id
DELETE /api/v1/category/:id
GET /api/v1/predictive/forecast
GET /api/v1/predictive/forecast/category/:categoryId
GET /api/v1/predictive/reorder-recommendations
GET /api/v1/predictive/accuracy
GET /api/v1/predictive/dashboard
DELETE /api/v1/predictive/cache
GET /api/v1/chat/session
POST /api/v1/chat/message
GET /api/v1/chat/history
POST /api/v1/chat/clear
- Responsive Navigation: Collapsible sidebar with mobile overlay
- Theme Toggle: Dark/light mode with persistent preferences
- Breadcrumb Navigation: Clear page hierarchy
- Loading States: Smooth loading animations
- Interactive Charts: Line, Bar, Doughnut charts
- Real-time Updates: Live data refresh
- Export Capabilities: JSON, CSV, PDF formats
- Responsive Charts: Mobile-optimized visualizations
# Database
DB_URL=mongodb://localhost:27017/inventory
# Authentication
JWT_SECRET=your_super_secret_key
# AI Services
GEMINI_API_KEY=your_gemini_api_key
# Server
PORT=5050
NODE_ENV=development// API Base URL
const API_BASE_URL = 'http://localhost:5050/api/v1';
// Chart Configuration
const chartOptions = {
responsive: true,
maintainAspectRatio: false
};- Caching Strategy: 10-minute cache for expensive calculations
- Database Indexing: Optimized queries for large datasets
- Error Handling: Comprehensive error management
- Rate Limiting: API abuse prevention
- Code Splitting: Lazy loading for better performance
- Memoization: React.memo for expensive components
- Debounced Search: Optimized search functionality
- Image Optimization: Compressed product images
- Demand Forecasting: Multiple algorithm support
- Stock Optimization: Smart reorder recommendations
- Trend Analysis: Historical data insights
- Accuracy Metrics: MAPE-based performance tracking
- Total Products: Real-time product count
- Low Stock Alerts: Items below threshold
- Category Distribution: Product categorization
- Value Analytics: Total inventory worth
- JWT Tokens: Secure session management
- Role-based Access: Admin, Manager, Staff roles
- Password Hashing: bcrypt encryption
- Input Validation: XSS and injection prevention
- Environment Variables: Secure configuration
- CORS Configuration: Cross-origin request handling
- File Upload Security: Image validation and sanitization
- API Rate Limiting: Abuse prevention
cd backend
npm testcd frontend
npm test# Test predictive analytics
curl -X GET "http://localhost:5050/api/v1/predictive/forecast" \
-H "Authorization: Bearer YOUR_TOKEN"
# Test chatbot
curl -X POST "http://localhost:5050/api/v1/chat/message" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_TOKEN" \
-d '{"message": "How many products do we have?"}'- Mobile: < 640px
- Tablet: 640px - 1024px
- Desktop: > 1024px
- Large Touch Targets: 44px minimum
- Swipe Gestures: Mobile navigation
- Optimized Forms: Mobile-friendly inputs
- Fast Loading: Optimized for slow connections
- Basic Inventory Tracking: Product management
- Stock Alerts: Low stock notifications
- Simple Analytics: Basic reporting
- Predictive Analytics: Demand forecasting
- AI Chatbot: Intelligent assistance
- Advanced Reporting: Detailed insights
- Multi-location Support: Scalable architecture
- Advanced Analytics: Machine learning integration
- API Integration: Third-party system connectivity
- Machine Learning Integration: TensorFlow.js for advanced predictions
- Real-time Notifications: WebSocket support
- Mobile App: React Native version
- Advanced Analytics: Custom reporting engine
- Supplier Integration: Automated ordering system
- Microservices Architecture: Service decomposition
- Redis Caching: High-performance caching
- Load Balancing: Horizontal scaling
- Database Sharding: Large dataset handling
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests
- Submit a pull request
- ESLint: JavaScript linting
- Prettier: Code formatting
- TypeScript: Type safety (future)
- Jest: Unit testing
master
This project is licensed under the MIT License - see the LICENSE file for details.
<<<<<<< HEAD ##Contact <<<<<<< HEAD Utpal Kumar(utpal-kumar-08) Project link :
-
Thanks to all contributors who have helped shape this project
-
Inspired by modern inventory management systems ======= Utpal Kumar Github profile: utpal-kumar-08 Project link : https://github.com/utpal-kumar-08/Inventory-Management.git
-
Thanks to all contributors who have helped shape this project
-
Inspired by modern inventory management systems
2b0a548cbe64318edfa43992eae1d820b0c45f52 =======
- Google Gemini AI: For intelligent chatbot capabilities
- Chart.js: For beautiful data visualizations
- Tailwind CSS: For responsive design framework
- MongoDB: For flexible data storage
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Email: support@inventory-system.com
Built with โค๏ธ using React, Node.js, and AI-powered technologies
This inventory management system provides a comprehensive solution for businesses of all sizes, from small retail stores to large enterprises, with advanced features like predictive analytics and AI-powered assistance.
master