An intelligent demand forecasting platform designed for Algerian wholesalers, built during the DEVCAMP 3.0 Hackathon. StockFlow leverages machine learning to predict seasonal demand patterns and prevent stock shortages.
StockFlow helps wholesalers optimize their inventory management by providing accurate demand predictions using advanced machine learning algorithms. The platform analyzes historical sales data, seasonal trends, and promotional impacts to deliver actionable insights.
- XGBoost Algorithm - Advanced machine learning for accurate demand forecasting
- Seasonal Analysis - Identifies and predicts seasonal demand patterns
- Promotional Impact - Analyzes the effect of promotions on sales
- Real-time Analytics - Live dashboard with up-to-date predictions
- CSV Import - Easy bulk data import functionality
- Data Preprocessing - Automated data cleaning and preparation
- Feature Engineering - Advanced feature creation for better predictions
- Hyperparameter Tuning - Optimized ML models via RandomizedSearchCV
- Multi-tier Subscriptions - Flexible pricing plans for different business sizes
- Interactive Dashboards - Visual trend analysis and forecasting charts
- Stock Alerts - Automated notifications for potential stock shortages
- Historical Analysis - Comprehensive sales history insights
- React.js - Modern component-based UI framework
- Tailwind CSS - Utility-first CSS framework for responsive design
- Axios - HTTP client for API communication
- Django - Python web framework
- Django REST Framework - API development
- PostgreSQL - Robust relational database
- XGBoost - Gradient boosting algorithm
- Scikit-learn - ML preprocessing and model evaluation
- Pandas & NumPy - Data manipulation and analysis
- RandomizedSearchCV - Hyperparameter optimization
- Python 3.8+
- Node.js 14+
- PostgreSQL 12+
-
Clone the repository
git clone https://github.com/yourusername/stockflow.git cd stockflow -
Backend Setup
cd backend python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate pip install -r requirements.txt
-
Database Configuration
# Create PostgreSQL database createdb stockflow_db # Run migrations python manage.py migrate # Create superuser python manage.py createsuperuser
-
Environment Variables
Create a
.envfile in the backend directory:DEBUG=True SECRET_KEY=your-secret-key DATABASE_URL=postgresql://user:password@localhost:5432/stockflow_db REDIS_URL=redis://localhost:6379/0 JWT_SECRET=your-jwt-secret
-
Frontend Setup
cd ../frontend npm install npm start -
Start Backend Services
cd ../backend python manage.py runserver # In another terminal, start Celery worker celery -A stockflow worker --loglevel=info
- Frontend: http://localhost:3000
- Backend API: http://localhost:8000
- Admin Panel: http://localhost:8000/admin
- Data Cleaning - Remove duplicates, handle missing values
- Feature Engineering - Create time-based features, lag variables
- Seasonal Decomposition - Extract trend and seasonal components
- Normalization - Scale features for optimal model performance
- XGBoost Configuration - Optimized hyperparameters
- Cross-validation - Ensure model robustness
- Feature Importance - Identify key prediction factors
- Model Validation - Performance metrics and evaluation
- Predict future demand with 85%+ accuracy
- Identify seasonal patterns and trends
DEVCAMP 3.0 Hackathon Project
- Developed in 3 days during the hackathon
- Focused on solving real problems for Algerian wholesalers
- MVP delivered with core functionality and subscription model
- Demonstrated scalable architecture and ML integration
- Mobile App - React Native mobile application
- Advanced ML Models - LSTM, Prophet for time series forecasting
- Multi-language Support - Arabic and French localization
- Advanced Analytics - Predictive analytics for pricing optimization
We welcome contributions! Please follow these steps:
- Fork the repository
- Create a 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
- DEVCAMP 3.0 - For providing the platform and inspiration
- Open Source Contributors - For the amazing tools and libraries
⭐ If you found this project helpful, please give it a star! ⭐
Built with ❤️ during DEVCAMP 3.0 Hackathon