How jainvasu1/inrange works
InRange is a roommate-matching web application. Its main workflow is account registration and login, profile and preference setup, compatibility-based match browsing, then private messaging. The graph includes the documented product capabilities and the sampled server, route, controller, model, and matching layers. The frontend templates are present in the tree, but their API interactions were not sampled, so those links are not inferred.
Main entry points: server.js HTTP and socket server · profileController.js Profile and match handling · profile.js Profile routes · chat.js Chat routes
Components 17
Web experience
- Web pages
frontend/static/templates - HTTP and socket server
server.js
Accounts and access
- Auth routes
backend/routes/auth.js - Account handling
backend/controllers/authController.js - JWT authentication
backend/middleware/auth.js
Profiles and matching
- Profile routes
backend/routes/profile.js - Profile and match handling
backend/controllers/profileController.js - Compatibility scoring
backend/utils/compatibilityEngine.js
Private messaging
- Chat routes
backend/routes/chat.js - Chat history
backend/controllers/chatController.js - Message records
backend/models/Message.js
Persistence
- User records
backend/models/User.js - Profile records
backend/models/Profile.js - Preference records
backend/models/Preferences.js - MongoDB connection
backend/config/db.js
Other components
- Roommate seeker
- MongoDB
Connections 20
- Roommate seeker → Web pages: uses
README.md - HTTP and socket server → Web pages: serves
server.js - HTTP and socket server → Auth routes: mounts
server.js - HTTP and socket server → Profile routes: mounts
server.js - HTTP and socket server → Chat routes: mounts
server.js - HTTP and socket server → MongoDB connection: connects
server.js - MongoDB connection → MongoDB: connects
backend/config/db.js - Auth routes → Account handling: dispatches
backend/routes/auth.js - Account handling → User records: reads and writes
backend/controllers/authController.js - Profile routes → JWT authentication: authenticates
backend/routes/profile.js - Profile routes → Profile and match handling: dispatches
backend/routes/profile.js - JWT authentication → User records: loads user
backend/middleware/auth.js - Profile and match handling → User records: updates
backend/controllers/profileController.js - Profile and match handling → Profile records: reads and writes
backend/controllers/profileController.js - Profile and match handling → Preference records: reads and writes
backend/controllers/profileController.js - Profile and match handling → Compatibility scoring: scores compatibility
backend/controllers/profileController.js - Chat routes → JWT authentication: authenticates
backend/routes/chat.js - Chat routes → Chat history: dispatches
backend/routes/chat.js - Chat history → Message records: loads history
backend/controllers/chatController.js - HTTP and socket server → Message records: stores socket messages
server.js