How springboardmentor54321v/small-business-sales-intelligence-platform-sb7-team1 works
MarketMind AI is a small-business sales intelligence platform. A user signs in to the frontend and uses dashboards, sales and inventory tools, invoices, and AI insights; the security gateway protects requests and proxies business operations to the database-backed API. AI capabilities include anomaly detection, churn prediction, recommendations, segmentation, and forecasting. The repository also contains a unified FastAPI application and standalone AI API apps. Some links to unsampled feature implementations are omitted or marked unverified.
Main entry points: src/app.js Gateway app · src/app.js Backend app · AppRoutes.jsx Frontend routes · auth.controller.js Authentication
Components 20
Web application
- Frontend routes
Frontend/src/routes/AppRoutes.jsx - Business workspace
Frontend/src/pages
Security gateway
- Gateway app
Security_API_gateway/src/app.js - Authentication
Security_API_gateway/src/auth/auth.controller.js - Gateway user store
Security_API_gateway/src/config/prisma.js - Audit logging
Security_API_gateway/src/middleware/auditLogger.js - Invoice proxy
Security_API_gateway/src/routes/invoices.routes.js - Inventory proxy
Security_API_gateway/src/routes/inventory.routes.js - Service endpoints
Security_API_gateway/src/config/services.config.js
Business API and data
- Backend app
Backend_Databse/src/app.js - Invoice routes
Backend_Databse/src/routes/invoice.routes.js - Invoice operations
Backend_Databse/src/controllers/invoice.controller.js - Invoice service
Backend_Databse/src/services/invoice.service.js - Sales operations
Backend_Databse/src/controllers/sales.controller.js - Business database
Backend_Databse/src/config/prisma.js
AI intelligence
- Unified AI API
server/main.py - AI feature routers
server/routers - AI domain services
server/services - AI service APIs
AIML/api
Other components
- Business user
Connections 24
- Business user → Frontend routes: uses
Frontend/src/routes/AppRoutes.jsx - Frontend routes → Business workspace: routes to
Frontend/src/routes/AppRoutes.jsx - Frontend routes → Gateway app: requests API
- Gateway app → Authentication: mounts auth
Security_API_gateway/src/app.js - Authentication → Gateway user store: reads and writes
Security_API_gateway/src/auth/auth.controller.js - Gateway app → Invoice proxy: mounts invoices
Security_API_gateway/src/app.js - Gateway app → Inventory proxy: mounts inventory
Security_API_gateway/src/app.js - Gateway app → Audit logging: logs rejected requests
Security_API_gateway/src/app.js - Authentication → Audit logging: logs auth events
Security_API_gateway/src/auth/auth.controller.js - Invoice proxy → Service endpoints: gets backend URL
Security_API_gateway/src/routes/invoices.routes.js - Invoice proxy → Backend app: forwards requests
Security_API_gateway/src/routes/invoices.routes.js - Inventory proxy → Service endpoints: gets backend URL
Security_API_gateway/src/routes/inventory.routes.js - Inventory proxy → Backend app: forwards requests
Security_API_gateway/src/routes/inventory.routes.js - Backend app → Invoice routes: mounts invoices
Backend_Databse/src/app.js - Invoice routes → Invoice operations: dispatches invoice actions
Backend_Databse/src/routes/invoice.routes.js - Invoice operations → Invoice service: calls service
Backend_Databse/src/controllers/invoice.controller.js - Invoice operations → Business database: queries data
Backend_Databse/src/controllers/invoice.controller.js - Invoice service → Business database: queries data
Backend_Databse/src/services/invoice.service.js - Backend app → Sales operations: mounts sales routes
Backend_Databse/src/app.js - Sales operations → Business database: reads and writes sales
Backend_Databse/src/controllers/sales.controller.js - Sales operations → Invoice service: uses invoice service
Backend_Databse/src/controllers/sales.controller.js - Unified AI API → AI feature routers: mounts routers
server/main.py - AI feature routers → AI domain services: delegates to services
- Unified AI API → AI service APIs: provides parallel AI APIs