A comprehensive, microservices-based retail supply chain management platform that leverages AI/ML for forecasting, route optimization, and analytics.
- 📊 Real-time Dashboard - Comprehensive overview of retail operations
- 🔮 AI-Powered Forecasting - Multiple ML models (Prophet, LSTM, XGBoost, Ensemble)
- 🗺️ Route Optimization - Advanced algorithms for delivery optimization
- 🏪 Store Management - Complete store lifecycle management
- 📦 Product Management - Inventory tracking and analytics
- 📈 Advanced Analytics - Deep insights into business performance
- Microservices Architecture - Scalable and maintainable design
- Real-time Data Processing - Live updates and notifications
- RESTful APIs - Comprehensive API endpoints
- Containerized Deployment - Docker-based infrastructure
- Monitoring & Observability - Prometheus + Grafana integration
- Responsive UI - Modern React frontend with Tailwind CSS
┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐
│ React Frontend│ │ Go Backend │ │ Python Services│
│ (Port 3000) │◄──►│ (Port 8080) │◄──►│ (Port 8000/8001)│
└─────────────────┘ └─────────────────┘ └─────────────────┘
│ │ │
│ │ │
└───────────────────────┼───────────────────────┘
│
┌─────────────────┐
│ PostgreSQL │
│ (Port 5432) │
└─────────────────┘
-
Frontend (React + TypeScript + Tailwind)
- Modern, responsive UI
- Real-time data visualization
- Interactive dashboards
-
Backend (Go + Gin)
- RESTful API endpoints
- Database operations
- Business logic
-
Forecast Service (Python + FastAPI)
- ML model training and inference
- Time series forecasting
- Model evaluation
-
Routing Service (Python + FastAPI)
- Route optimization algorithms
- Vehicle routing problem solving
- Geographic clustering
-
Database (PostgreSQL)
- Reliable data storage
- ACID compliance
- Complex queries support
- React 18 - UI framework
- TypeScript - Type safety
- Tailwind CSS - Styling
- React Query - Data fetching
- React Router - Navigation
- Recharts - Data visualization
- Lucide React - Icons
- Go 1.21 - Backend language
- Gin - Web framework
- GORM - ORM
- PostgreSQL - Database
- Redis - Caching
- Python 3.11 - ML runtime
- FastAPI - API framework
- Prophet - Time series forecasting
- TensorFlow/Keras - Deep learning
- XGBoost - Gradient boosting
- OR-Tools - Optimization
- Pandas/NumPy - Data processing
- Docker - Containerization
- Docker Compose - Orchestration
- Nginx - Reverse proxy
- Prometheus - Monitoring
- Grafana - Visualization
- Docker & Docker Compose
- Node.js 18+ (for development)
- Go 1.21+ (for development)
- Python 3.11+ (for development)
-
Clone the repository
git clone https://github.com/your-username/mumosa.git cd mumosa -
Start all services
docker-compose up -d
-
Access the application
- Frontend: http://localhost:3000
- Backend API: http://localhost:8080
- Forecast Service: http://localhost:8000
- Routing Service: http://localhost:8001
- Grafana: http://localhost:3001 (admin/admin)
-
Frontend Development
cd frontend npm install npm run dev -
Backend Development
cd retail-backend go mod download go run cmd/main.go -
Forecast Service Development
cd forecast-service pip install -r requirements.txt uvicorn api.main:app --reload --port 8000 -
Routing Service Development
cd routing-service pip install -r requirements.txt uvicorn api.main:app --reload --port 8001
- View real-time metrics and KPIs
- Monitor store performance
- Track inventory levels
- Analyze sales trends
- Select a forecasting model (Prophet, LSTM, XGBoost, or Ensemble)
- Configure forecast parameters
- Generate predictions
- View accuracy metrics and confidence intervals
- Select optimization algorithm (Dijkstra, A*, OR-Tools VRP)
- Configure route parameters
- Optimize delivery routes
- View route maps and statistics
- Add, edit, and delete stores
- Track store performance
- Manage store information
- View store analytics
- Manage product catalog
- Track inventory levels
- Monitor product performance
- Set reorder points
- Base URL: http://localhost:8080
- Health:
GET /health - Stores:
GET/POST/PUT/DELETE /stores - Products:
GET/POST/PUT/DELETE /products - Sales:
GET/POST/PUT/DELETE /sales - Analytics:
GET /analytics/*
- Base URL: http://localhost:8000
- Health:
GET /health - Models:
GET /models - Forecast:
POST /forecast - Training:
POST /models/{model}/train
- Base URL: http://localhost:8001
- Health:
GET /health - Optimize:
POST /optimize - Routes:
GET/POST/PUT/DELETE /routes
VITE_API_BASE_URL=http://localhost:8080
VITE_FORECAST_API_URL=http://localhost:8000
VITE_ROUTING_API_URL=http://localhost:8001DB_HOST=localhost
DB_PORT=5432
DB_NAME=mumosa
DB_USER=mumosa_user
DB_PASSWORD=mumosa_password
DB_SSL_MODE=disable
PORT=8080DATABASE_URL=postgresql://mumosa_user:mumosa_password@localhost:5432/mumosa
MODEL_PATH=/app/models
LOG_LEVEL=INFODATABASE_URL=postgresql://mumosa_user:mumosa_password@localhost:5432/mumosa
LOG_LEVEL=INFO- Application metrics available at
/metricsendpoints - Custom business metrics
- Performance monitoring
- Pre-configured dashboards for:
- System performance
- Business metrics
- ML model performance
- API usage statistics
cd frontend
npm testcd retail-backend
go test ./...# Test all services
./scripts/test_apis.sh- Set up production environment variables
- Configure SSL certificates
- Set up monitoring and alerting
- Deploy using Docker Compose or Kubernetes
kubectl apply -f infra/k8s/- Fork the repository
- Create a feature branch
- Make your changes
- Add tests
- Submit a pull request
This project is licensed under the MIT License - see the LICENSE file for details.
- Documentation: Wiki
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Basic CRUD operations
- Dashboard implementation
- ML forecasting models
- Route optimization
- Real-time notifications
- Advanced analytics
- Mobile app
- Multi-tenant support
- Advanced security
- Audit logging
- API rate limiting
- Performance optimization
Built with ❤️ for modern retail supply chain management