How springboardmentor54321v/small-business-sales-intelligence-platform-sb7-team3 works
MarketMind AI is a small-business sales-intelligence platform: users access role-oriented dashboards and operational views, while backend APIs handle sales, invoices, inventory, payments, notifications, and audit data; AI endpoints expose forecasts and customer/product insights. The sampled code confirms sales CSV ingestion into relational records, invoice-controller service calls, AI API capabilities, and audit-log reading. Several route handlers, frontend service implementations, model-loading details, and persistence schema were not sampled, so those internal links are omitted or shown only where the available evidence supports them.
Main entry points: index.jsx Page routing · salesController.js Sales import and query · App.jsx Application shell · pages Business views
Components 24
Web experience
- Application shell
Frontend/src/App.jsx - Page routing
Frontend/src/routes/index.jsx - Role dashboards
Frontend/src/pages/dashboards/StoreManagerDashboard.jsx - Business views
Frontend/src/pages - API services
Frontend/src/services
Business API
- Backend API
Backend_Database/server.js - Sales routes
Backend_Database/src/routes/salesroutes.js - Sales import and query
Backend_Database/src/controllers/salesController.js - Sales CSV service
Backend_Database/src/services/saleService.js - Invoice operations
Backend_Database/src/controllers/invoiceController.js - Invoice service
Backend_Database/src/services/invoiceService.js - Business services
Backend_Database/src/services - Retail records
- Backend audit summary
Backend_Database/src/routes/auditRoutes.js
AI intelligence
- AI endpoints
AIML/api/app.py - Forecast pipeline
AIML/main.py - Feature engineering
AIML/preprocessing/feature_engineering.py - Customer and product insights
AIML
Access and audit
- Security API
Security_API/server.js - Protected endpoints
Security_API/protectedRoutes.js - Auth and roles
Security_API/middleware.js - Audit summary
Security_API/auditRoutes.js - Activity log
Other components
- Business user
Connections 16
- Business user → Application shell: uses
- Application shell → Page routing: renders routes
- Page routing → Role dashboards: selects page
- Page routing → Business views: selects page
- Business views → API services: requests data
- Backend API → Sales routes: mounts routes
- Sales import and query → Sales CSV service: reads CSV
- Sales import and query → Retail records: writes and queries
- Invoice operations → Invoice service: calls
- Business services → Retail records: accesses records
- Forecast pipeline → Feature engineering: runs stage
- AI endpoints → Customer and product insights: serves insights
- Security API → Protected endpoints: hosts routes
- Protected endpoints → Auth and roles: checks access
- Audit summary → Activity log: reads
- Backend audit summary → Activity log: reads