How ayushraaaj/scaleup works
ScaleUp is a mentorship platform. The documented learner flow is mentor discovery and booking, followed by video consultation, messaging/file sharing, session completion, and review; mentors also manage profiles, availability, posts, and sessions. The graph combines documented capabilities with source-visible routing, review writes, and messaging behavior. Many backend and frontend modules were indexed but not excerpted, so their internal calls are not asserted; their major documented feature areas remain represented.
Main entry points: axios.ts HTTP client · app.ts Express API · review.controller.ts Review lifecycle · useMessages.ts Messaging client
Components 31
Learner and mentor experience
- Dashboard experience
frontend/app/dashboard - Mentor discovery
frontend/app/dashboard/mentors - Booking experience
frontend/app/dashboard/my-bookings - Mentor profile and availability
frontend/app/dashboard/mentor - Session management
frontend/app/dashboard/my-sessions - Review interface
frontend/components/modals/ReviewModal.tsx - Posts and feed
frontend/app/dashboard/feed - Sign-in and account
frontend/app/login/page.tsx - HTTP client
frontend/services/axios.ts
HTTP API and domain
- Express API
backend/src/app.ts - Authentication routes
backend/src/routers/auth.router.ts - Booking routes
backend/src/routers/booking.router.ts - Mentor routes
backend/src/routers/mentor.router.ts - Message routes
backend/src/routers/message.router.ts - Review routes
backend/src/routers/review.router.ts - Review lifecycle
backend/src/controllers/review.controller.ts - Review records
backend/src/models/review.model.ts - Booking records
backend/src/models/booking.model.ts - Session records
backend/src/models/session.model.ts - Mentor records
backend/src/models/mentor.model.ts
Live consultation
- Messaging client
frontend/hooks/message/useMessages.ts - Video consultation
frontend/components/video/VideoConsultation.tsx - Socket service
backend/src/services/socket.ts
Background operations
- Worker process
backend/src/workers/index.ts - Outbox processing
backend/src/workers/outbox.worker.ts - Email delivery
backend/src/workers/email.worker.ts - Session cleanup
backend/src/jobs/sessionCleanup.ts
Other components
- Learner or mentor
- Redis
- Cloudinary
- Brevo email
Connections 33
- Learner or mentor → Mentor discovery: browses mentors
README.md - Mentor discovery → HTTP client: requests data
README.md - Learner or mentor → Booking experience: books consultation
README.md - Booking experience → HTTP client: submits booking
README.md - Learner or mentor → Mentor profile and availability: sets availability
README.md - Learner or mentor → Session management: manages session
README.md - Learner or mentor → Video consultation: joins consultation
README.md - Learner or mentor → Messaging client: exchanges messages
README.md - Messaging client → HTTP client: loads and sends
frontend/hooks/message/useMessages.ts - Messaging client → Socket service: emits and receives
frontend/hooks/message/useMessages.ts - Learner or mentor → Review interface: rates mentor
README.md - Review interface → HTTP client: submits review
frontend/components/modals/ReviewModal.tsx - Sign-in and account → HTTP client: authenticates
frontend/app/login/page.tsx - HTTP client → Express API: sends requests
README.md - Express API → Authentication routes: mounts routes
backend/src/app.ts - Express API → Mentor routes: mounts routes
backend/src/app.ts - Express API → Booking routes: mounts routes
backend/src/app.ts - Express API → Message routes: mounts routes
backend/src/app.ts - Express API → Review routes: mounts routes
backend/src/app.ts - Review routes → Review lifecycle: dispatches
backend/src/routers/review.router.ts - Review lifecycle → Booking records: reads and updates
backend/src/controllers/review.controller.ts - Review lifecycle → Session records: checks completion
backend/src/controllers/review.controller.ts - Review lifecycle → Review records: creates and edits
backend/src/controllers/review.controller.ts - Review lifecycle → Mentor records: updates ratings
backend/src/controllers/review.controller.ts - Video consultation → Socket service: coordinates live session
README.md - Worker process → Outbox processing: runs worker
README.md - Worker process → Email delivery: runs worker
README.md - Outbox processing → Redis: uses messaging
README.md - Email delivery → Brevo email: sends email
README.md - Session cleanup → Session records: expires sessions
README.md - Messaging client → Cloudinary: shares files
README.md - Learner or mentor → Posts and feed: publishes and reads
README.md - Dashboard experience → HTTP client: uses API
README.md