How goutamchoudhary907/mulaqat works
Mulaqat is a campus-only dating and social app. Students register and complete a five-answer vibe check, then browse compatibility-ranked profiles, like or pass, and chat after a mutual match. Separate product branches support anonymous Spotted confessions and profile management; the README also documents illustrated avatars, secret-admirer counts, reactions, typing indicators, and online presence. The excerpts show frontend routing, session/socket setup, API routing, and several controller-to-model operations. Other capability links are documented or left unverified where source excerpts do not show their wiring.
Main entry points: App.jsx App routing · api.js API client · server.js HTTP and socket server · matchController.js Discovery and matching
Components 25
Student app
- App routing
client/src/App.jsx - Session and presence
client/src/context/AuthContext.jsx - API client
client/src/lib/api.js - Registration and vibe
client/src/pages/Onboarding.jsx - Profile
client/src/pages/Profile.jsx - Illustrated avatars
client/src/lib/avatars.js
API and identity
- HTTP and socket server
server/server.js - MongoDB connection
server/config/db.js - Auth routes
server/routes/authRoutes.js - Account and session logic
server/controllers/authController.js - User records
server/models/User.js
Matching and chat
- Discover deck
client/src/pages/Discover.jsx - Swipe deck
client/src/components/SwipeDeck.jsx - Matches list
client/src/pages/Matches.jsx - Realtime chat
client/src/pages/Chat.jsx - Match routes
server/routes/matchRoutes.js - Discovery and matching
server/controllers/matchController.js - Message records
server/models/Message.js - Socket events
server/socket/socket.js
Campus community
- Spotted wall
client/src/pages/Spotted.jsx - Confession routes
server/routes/confessionRoutes.js - Confession operations
server/controllers/confessionController.js - Confession records
server/models/Confession.js - Report operations
server/routes/reportRoutes.js
Other components
- Student
Connections 38
- Student → App routing: uses
- App routing → Session and presence: wraps
client/src/App.jsx - App routing → Registration and vibe: routes to
client/src/App.jsx - App routing → Discover deck: routes to
client/src/App.jsx - App routing → Matches list: routes to
client/src/App.jsx - App routing → Realtime chat: routes to
client/src/App.jsx - App routing → Spotted wall: routes to
client/src/App.jsx - App routing → Profile: routes to
client/src/App.jsx - Session and presence → API client: calls
client/src/context/AuthContext.jsx - Discover deck → API client: calls
client/src/pages/Discover.jsx - Discover deck → Swipe deck: renders
client/src/pages/Discover.jsx - Matches list → API client: calls
client/src/pages/Matches.jsx - Realtime chat → API client: calls
client/src/pages/Chat.jsx - Spotted wall → API client: calls
client/src/pages/Spotted.jsx - HTTP and socket server → MongoDB connection: connects
server/server.js - HTTP and socket server → Auth routes: mounts
server/server.js - HTTP and socket server → Match routes: mounts
server/server.js - HTTP and socket server → Confession routes: mounts
server/server.js - HTTP and socket server → Socket events: initializes
server/server.js - Auth routes → Account and session logic: dispatches
server/routes/authRoutes.js - Account and session logic → User records: reads and writes
server/controllers/authController.js - Match routes → Discovery and matching: dispatches
server/routes/matchRoutes.js - Discovery and matching → User records: reads and writes
server/controllers/matchController.js - Discovery and matching → Message records: reads and deletes
server/controllers/matchController.js - Socket events → Message records: stores messages
server/socket/socket.js - Socket events → User records: updates presence
server/socket/socket.js - Confession routes → Confession operations: dispatches
server/routes/confessionRoutes.js - Confession operations → Confession records: reads and writes
server/controllers/confessionController.js - Confession operations → User records: reads campus
server/controllers/confessionController.js - API client → HTTP and socket server: requests API
- Registration and vibe → API client: submits profile
- Profile → API client: updates profile
- Illustrated avatars → Registration and vibe: offers avatar choices
- Discovery and matching → Discover deck: returns ranked profiles
- Discovery and matching → Matches list: returns matches
- Socket events → Realtime chat: delivers live chat
- Confession operations → Spotted wall: serves wall
- Report operations → HTTP and socket server: mounted by
server/server.js