How sabnekarvineel/fondora-x works
Fondora-X is a role-based networking platform for students, freelancers, startups, and investors. Users register or log in, then use social feeds, profiles, messaging, search, jobs, and funding features. The React app communicates with an Express API backed by MongoDB; JWT middleware protects API routes, and Socket.IO supports live messaging and presence. The tree and README establish broad product capabilities, but many feature controllers and screens were not sampled, so their internal call relationships are omitted rather than inferred.
Main entry points: App.jsx App routes · server.js HTTP server · postController.js Posts and feed · User.js User records
Components 27
Web client
- App routes
frontend/src/App.jsx - Auth state
frontend/src/context/AuthContext.jsx - Dashboard
frontend/src/components/Dashboard.jsx - Profile
frontend/src/components/Profile.jsx - Search
frontend/src/components/Search.jsx - Funding detail
frontend/src/components/FundingDetail.jsx - Job detail
frontend/src/components/JobDetail.jsx - Admin
frontend/src/components/Admin.jsx - Settings
frontend/src/components/Settings.jsx
API and identity
- HTTP server
backend/server.js - Auth routes
backend/routes/authRoutes.js - Authentication
backend/controllers/authController.js - JWT protection
backend/middleware/auth.js
Social and messaging
- Posts and feed
backend/controllers/postController.js - Post routes
backend/routes/postRoutes.js - Messaging
backend/controllers/messageController.js - Message routes
backend/routes/messageRoutes.js - Encryption keys
backend/controllers/encryptionController.js - Live events
backend/socket/socketHandler.js
Marketplace
- Jobs and funding
backend/controllers
Persistence and realtime
- User records
backend/models/User.js - Post records
backend/models/Post.js - Message records
backend/models/Message.js - Conversations
backend/models/Conversation.js - Notifications
backend/controllers/notificationController.js - MongoDB connection
backend/config/db.js
Other components
- Platform user
Connections 33
- Platform user → App routes: uses
frontend/src/App.jsx - App routes → Auth state: reads auth state
frontend/src/App.jsx - App routes → Dashboard: routes to
frontend/src/App.jsx - App routes → Profile: routes to
frontend/src/App.jsx - App routes → Search: routes to
frontend/src/App.jsx - App routes → Funding detail: routes to
frontend/src/App.jsx - App routes → Job detail: routes to
frontend/src/App.jsx - App routes → Admin: routes to
frontend/src/App.jsx - App routes → Settings: routes to
frontend/src/App.jsx - Auth state → Auth routes: calls auth API
frontend/src/context/AuthContext.jsx - HTTP server → MongoDB connection: connects
backend/server.js - HTTP server → Auth routes: mounts
backend/server.js - HTTP server → Post routes: mounts
backend/server.js - HTTP server → Message routes: mounts
backend/server.js - HTTP server → Live events: initializes
backend/server.js - Auth routes → Authentication: routes requests
- Auth routes → JWT protection: protects routes
- Authentication → User records: reads and writes
backend/controllers/authController.js - Post routes → Posts and feed: routes requests
backend/routes/postRoutes.js - Post routes → JWT protection: protects routes
backend/routes/postRoutes.js - Posts and feed → Post records: reads and writes
backend/controllers/postController.js - Posts and feed → User records: queries users
backend/controllers/postController.js - Posts and feed → Notifications: creates notifications
backend/controllers/postController.js - Posts and feed → Live events: emits events
backend/controllers/postController.js - Message routes → Messaging: routes requests
backend/routes/messageRoutes.js - Message routes → JWT protection: protects routes
backend/routes/messageRoutes.js - Messaging → Message records: reads and writes
backend/controllers/messageController.js - Messaging → Conversations: reads and writes
backend/controllers/messageController.js - Messaging → User records: checks participants
backend/controllers/messageController.js - Encryption keys → User records: stores key data
backend/controllers/encryptionController.js - Encryption keys → Conversations: stores shared keys
backend/controllers/encryptionController.js - Live events → User records: authenticates sockets
backend/socket/socketHandler.js - Platform user → Jobs and funding: uses jobs and funding