How altheeiya/telco-product-recomendation-offer-based-on-customer-behaviour works
Telco Product Recommendation is a web application for account management, browsing and purchasing telco products, personalized recommendations, and administrative oversight. Users register or log in, then explore recommendations and products, manage their profile and balance, and view or make transactions; administrators manage users, products, transactions, and reports. The frontend communicates with an Express API backed by Sequelize models, while a separate Python/Node ML service supports prediction. The graph preserves the documented feature areas, but several links are omitted because their implementation was not sampled.
Main entry points: App.jsx Web routes · server.js Express API · services API services · index.js Relational data
Components 31
Web application
- Web routes
frontend/src/App.jsx - Session state
frontend/src/utils/auth.js - Sign in and register
frontend/src/pages/Login.jsx - User dashboard
frontend/src/pages/Dashboard.jsx - Product browsing
frontend/src/pages/Products.jsx - Product details
frontend/src/pages/ProductDetail.jsx - Profile and balance
frontend/src/pages/Profile.jsx - Transaction history
frontend/src/pages/TransactionHistory.jsx - Admin analytics
frontend/src/pages/admin/AdminDashboard.jsx - Admin management
frontend/src/pages/admin/AdminProducts.jsx - API services
frontend/src/services - HTTP client
frontend/src/services/api.js
Core API
- Express API
backend-1/server.js - Authentication routes
backend-1/routes/authRoutes.js - Authentication
backend-1/controllers/authController.js - Product routes
backend-1/routes/productRoutes.js - Product operations
backend-1/controllers/productController.js - Recommendation routes
backend-1/routes/recommendationRoutes.js - Recommendation operations
backend-1/controllers/recommendationController.js - Transaction routes
backend-1/routes/transactionRoutes.js - Transaction operations
backend-1/controllers/transactionController.js - User routes
backend-1/routes/userRoutes.js - User operations
backend-1/controllers/userController.js - Admin routes
backend-1/routes/adminRoutes.js - Admin operations
backend-1/controllers/adminController.js - Access control
backend-1/middleware/authMiddleware.js
Application data
- Relational data
backend-1/models/index.js
Recommendation ML
- ML prediction service
backend-2-ml/server.js - Prediction logic
backend-2-ml/python/predict.py
Other components
- Customer
- Administrator
Connections 42
- Customer → Web routes: uses
- Administrator → Web routes: uses
- Web routes → Sign in and register: routes to
frontend/src/App.jsx - Web routes → User dashboard: routes to
frontend/src/App.jsx - Web routes → Product browsing: routes to
frontend/src/App.jsx - Web routes → Product details: routes to
frontend/src/App.jsx - Web routes → Profile and balance: routes to
frontend/src/App.jsx - Web routes → Transaction history: routes to
frontend/src/App.jsx - Web routes → Admin analytics: routes to
frontend/src/App.jsx - Web routes → Admin management: routes to
frontend/src/App.jsx - Web routes → Session state: checks session
frontend/src/App.jsx - Sign in and register → API services: uses auth
frontend/src/pages/Login.jsx - User dashboard → API services: loads recommendations
frontend/src/pages/Dashboard.jsx - Product browsing → API services: loads products
frontend/src/pages/Products.jsx - Product details → API services: uses product services
frontend/src/pages/ProductDetail.jsx - Profile and balance → API services: loads profile
frontend/src/pages/Profile.jsx - Admin analytics → API services: loads analytics
frontend/src/pages/admin/AdminDashboard.jsx - Sign in and register → Session state: stores session
frontend/src/pages/Login.jsx - API services → HTTP client: sends requests
frontend/src/services/authService.js - HTTP client → Express API: calls API
- Express API → Authentication routes: mounts routes
backend-1/server.js - Express API → Product routes: mounts routes
backend-1/server.js - Express API → Recommendation routes: mounts routes
backend-1/server.js - Express API → Transaction routes: mounts routes
backend-1/server.js - Express API → User routes: mounts routes
backend-1/server.js - Express API → Admin routes: mounts routes
backend-1/server.js - Authentication routes → Authentication: dispatches
backend-1/routes/authRoutes.js - Product routes → Product operations: dispatches
backend-1/routes/productRoutes.js - Recommendation routes → Recommendation operations: dispatches
backend-1/routes/recommendationRoutes.js - Transaction routes → Transaction operations: dispatches
backend-1/routes/transactionRoutes.js - User routes → User operations: dispatches
backend-1/routes/userRoutes.js - Admin routes → Admin operations: dispatches
backend-1/routes/adminRoutes.js - Admin routes → Access control: protects routes
backend-1/routes/adminRoutes.js - Recommendation routes → Access control: protects routes
backend-1/routes/recommendationRoutes.js - Authentication → Relational data: reads and writes
backend-1/controllers/authController.js - Product operations → Relational data: uses models
backend-1/controllers/productController.js - Recommendation operations → Relational data: uses models
backend-1/controllers/recommendationController.js - Transaction operations → Relational data: uses models
backend-1/controllers/transactionController.js - User operations → Relational data: uses models
backend-1/controllers/userController.js - Admin operations → Relational data: queries models
backend-1/controllers/adminController.js - Authentication → ML prediction service: requests predictions
backend-1/controllers/authController.js - ML prediction service → Prediction logic: runs prediction