How sadhurevanthchowdary-cell/influencer-client-platform works
Collab Sphere is a marketplace for brands and influencers to discover profiles, manage promotions, and collaborate. The main workflow runs from role-based signup and profile setup through campaign creation, dashboards, chat, and reviews. The React client uses an Express API backed by MongoDB, with a separate Socket.io service for live messaging and optional Cloudinary and Gemini integrations. The graph preserves documented product areas; many page and route implementations were not sampled, so their detailed internal calls are not asserted.
Main entry points: server/index.js Express API · src/index.js Web application · PromotionController.js Promotions API · InfluencerController.js Influencer and reviews API
Components 28
React client
- Web application
client/src/index.js - Signup and login
client/src/Pages/Signup.jsx - Profile discovery
client/src/Pages/Influencers.jsx - Profiles and reviews
client/src/Pages/InfluencerProfile.jsx - Campaign dashboards
client/src/Pages/InfluencerDashboard.jsx - Chat interface
client/src/Pages/Chat/Chat.jsx
Accounts and profiles
- User context
client/src/Context/UserContext.js - Client profile editing
client/src/Pages/UpdateClient.jsx - Image uploads
client/src/CloudServices/cloudinaryServices.js
Campaign collaboration
- Promotions API
server/Controllers/PromotionController.js
API and persistence
- Authentication API
server/Controllers/UserController.js - Client profiles API
server/Controllers/ClientController.js - Influencer and reviews API
server/Controllers/InfluencerController.js - JWT authorization
server/Middleware/authMiddleware.js - Client records
server/Models/ClientModel.js - Influencer records
server/Models/InfluencerModel.js - Promotion records
server/Models/PromotionModel.js - Conversation records
server/Models/ChatModel.js - Message records
server/Models/MessageModel.js - Express API
server/index.js
Realtime and AI
- Conversation API
server/Controllers/ChattController.js - Message API
server/Controllers/MessageController.js - AI assistant API
server/Controllers/AiChatController.js - Socket.io service
socket/index.js
Other components
- Influencers and clients
- MongoDB
- Cloudinary
- Gemini API
Connections 44
- Influencers and clients → Web application: use
- Web application → Signup and login: routes to
client/src/index.js - Web application → Profile discovery: routes to
client/src/index.js - Web application → Profiles and reviews: routes to
client/src/index.js - Web application → Campaign dashboards: routes to
client/src/index.js - Web application → Chat interface: routes to
client/src/index.js - Signup and login → Authentication API: registers and logs in
- Signup and login → User context: sets session
- Profiles and reviews → Influencer and reviews API: reads profiles and reviews
- Profiles and reviews → Client profiles API: reads client profiles
- Profiles and reviews → Influencer and reviews API: submits reviews
- Client profile editing → Client profiles API: updates profile
client/src/Pages/UpdateClient.jsx - Client profile editing → Image uploads: uploads images
client/src/Pages/UpdateClient.jsx - Image uploads → Cloudinary: uploads media
client/src/CloudServices/cloudinaryServices.js - Campaign dashboards → Promotions API: manages campaigns
- Chat interface → Conversation API: manages conversations
- Chat interface → Message API: sends messages
- Chat interface → Socket.io service: delivers live messages
- Web application → AI assistant API: asks assistant
- AI assistant API → Gemini API: queries
- Express API → MongoDB: connects
server/index.js - Express API → Client profiles API: mounts client routes
server/index.js - Express API → Influencer and reviews API: mounts influencer routes
server/index.js - Express API → Promotions API: mounts promotion routes
server/index.js - Express API → Conversation API: mounts chat routes
server/index.js - Express API → Message API: mounts message routes
server/index.js - Express API → Authentication API: mounts user routes
server/index.js - Express API → AI assistant API: mounts AI routes
server/index.js - Client profiles API → Client records: reads and updates
server/Controllers/ClientController.js - Influencer and reviews API → Influencer records: reads and updates
server/Controllers/InfluencerController.js - Influencer and reviews API → Client records: checks reviewer
server/Controllers/InfluencerController.js - Authentication API → Client records: selects by role
server/Controllers/UserController.js - Authentication API → Influencer records: selects by role
server/Controllers/UserController.js - Promotions API → Promotion records: creates and updates
server/Controllers/PromotionController.js - Promotions API → Client records: updates counters
server/Controllers/PromotionController.js - Promotions API → Influencer records: updates counters
server/Controllers/PromotionController.js - Conversation API → Conversation records: reads and writes
server/Controllers/ChattController.js - JWT authorization → Express API: authorizes requests
- Message API → Message records: stores messages
- Conversation records → MongoDB: persists in
- Message records → MongoDB: persists in
- Client records → MongoDB: persists in
- Influencer records → MongoDB: persists in
- Promotion records → MongoDB: persists in