# manishdev0103/mentorconnect---student-mentorship-platform architecture

> Architecture diagram of the GitHub repository manishdev0103/mentorconnect---student-mentorship-platform, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/manishdev0103/mentorconnect---student-mentorship-platform
- Repository: https://github.com/manishdev0103/mentorconnect---student-mentorship-platform

## Overview

MentorConnect is a student–mentor platform with role-based registration, mentor discovery, booked sessions, learning tools, messaging, and administration. The main user path is through the routed client: students or mentors register or sign in, then use their role-specific areas; students can browse mentors and manage sessions. The Java backend provides domain APIs, while a separate .NET payment service connects to Razorpay and notifies the backend. The tree and excerpts support these major capabilities, but many feature-specific calls were not sampled, so those links are omitted or marked unverified.

Main entry points: [`PaymentService/Controllers/PaymentController.cs`](https://github.com/manishdev0103/mentorconnect---student-mentorship-platform/blob/main/PaymentService/Controllers/PaymentController.cs) (Payment controller), [`client/src/App.jsx`](https://github.com/manishdev0103/mentorconnect---student-mentorship-platform/blob/main/client/src/App.jsx) (Route application), [`server/MentorshipBackend/src/main/java/com/mentorship/service/MCQPracticeSessionService.java`](https://github.com/manishdev0103/mentorconnect---student-mentorship-platform/blob/main/server/MentorshipBackend/src/main/java/com/mentorship/service/MCQPracticeSessionService.java) (Practice sessions), [`client/src/pages/Register/StudentRegister.jsx`](https://github.com/manishdev0103/mentorconnect---student-mentorship-platform/blob/main/client/src/pages/Register/StudentRegister.jsx) (Student signup)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Web client"]
  node_app["Route application<br/>[App.jsx]"]
  node_mentor_discovery["Mentor discovery<br/>[MentorListing.jsx]"]
  node_student_signup["Student signup"]
  node_mentor_signup["Mentor signup<br/>[MentorRegister.jsx]"]
  node_api_client["API client<br/>[api.js]"]
end

subgraph group_identity["Identity and access"]
  node_auth_service["Auth client<br/>[authService.js]"]
  node_auth_api["Authentication API"]
  node_auth_service_backend["Authentication service<br/>[AuthService.java]"]
  node_user_details["User details loader"]
  node_repositories[("Data repositories")]
end

subgraph group_mentorship["Mentorship services"]
  node_student_api["Student API"]
  node_student_service["Student services"]
  node_session_service["Session services"]
  node_domain_entities[("Mentorship domain")]
end

subgraph group_learning["Learning and communication"]
  node_mcq_service["Practice sessions"]
  node_mcq_repository[("Practice storage")]
  node_messaging["Messaging API"]
end

subgraph group_payments["Payments"]
  node_payment_controller["Payment controller"]
  node_payment_store[("Subscription store")]
end

node_student(("Student"))
node_mentor(("Mentor"))
node_admin(("Administrator"))
node_razorpay["Razorpay"]
node_backend["Mentorship backend"]

node_app -->|"routes to"| node_mentor_discovery
node_app -->|"routes to"| node_student_signup
node_app -->|"routes to"| node_mentor_signup
node_student_signup -.->|"uses"| node_auth_service
node_mentor_signup -.->|"uses"| node_auth_service
node_auth_service -->|"sends requests"| node_api_client
node_student -.->|"registers"| node_student_signup
node_mentor -.->|"registers"| node_mentor_signup
node_admin -.->|"uses routes"| node_app
node_user_details -->|"loads identity"| node_repositories
node_student_api -->|"delegates"| node_student_service
node_student_api -->|"queries practice"| node_mcq_service
node_student_service -.->|"uses domain"| node_domain_entities
node_session_service -.->|"uses domain"| node_domain_entities
node_mcq_service -->|"reads and saves"| node_mcq_repository
node_mcq_service -->|"loads participants"| node_repositories
node_student -.->|"browses"| node_mentor_discovery
node_mentor -.->|"messages"| node_messaging
node_student -.->|"pays"| node_payment_controller
node_payment_controller -->|"creates orders"| node_razorpay
node_payment_controller -->|"saves subscription"| node_payment_store
node_payment_controller -->|"notifies session"| node_backend
node_payment_controller -->|"notifies subscription"| node_backend

click node_app "https://github.com/manishdev0103/mentorconnect---student-mentorship-platform/blob/main/client/src/App.jsx"
click node_mentor_discovery "https://github.com/manishdev0103/mentorconnect---student-mentorship-platform/blob/main/client/src/pages/MentorListing/MentorListing.jsx"
click node_student_signup "https://github.com/manishdev0103/mentorconnect---student-mentorship-platform/blob/main/client/src/pages/Register/StudentRegister.jsx"
click node_mentor_signup "https://github.com/manishdev0103/mentorconnect---student-mentorship-platform/blob/main/client/src/pages/Register/MentorRegister.jsx"
click node_api_client "https://github.com/manishdev0103/mentorconnect---student-mentorship-platform/blob/main/client/src/API/api.js"
click node_auth_service "https://github.com/manishdev0103/mentorconnect---student-mentorship-platform/blob/main/client/src/API/authService.js"
click node_auth_api "https://github.com/manishdev0103/mentorconnect---student-mentorship-platform/blob/main/server/MentorshipBackend/src/main/java/com/mentorship/controller/AuthController.java"
click node_auth_service_backend "https://github.com/manishdev0103/mentorconnect---student-mentorship-platform/blob/main/server/MentorshipBackend/src/main/java/com/mentorship/service/AuthService.java"
click node_user_details "https://github.com/manishdev0103/mentorconnect---student-mentorship-platform/blob/main/server/MentorshipBackend/src/main/java/com/mentorship/security/CustomUserDetailsService.java"
click node_repositories "https://github.com/manishdev0103/mentorconnect---student-mentorship-platform/tree/main/server/MentorshipBackend/src/main/java/com/mentorship/repository"
click node_student_api "https://github.com/manishdev0103/mentorconnect---student-mentorship-platform/blob/main/server/MentorshipBackend/src/main/java/com/mentorship/controller/StudentController.java"
click node_student_service "https://github.com/manishdev0103/mentorconnect---student-mentorship-platform/blob/main/server/MentorshipBackend/src/main/java/com/mentorship/service/StudentService.java"
click node_session_service "https://github.com/manishdev0103/mentorconnect---student-mentorship-platform/blob/main/server/MentorshipBackend/src/main/java/com/mentorship/service/SessionService.java"
click node_domain_entities "https://github.com/manishdev0103/mentorconnect---student-mentorship-platform/tree/main/server/MentorshipBackend/src/main/java/com/mentorship/entities"
click node_mcq_service "https://github.com/manishdev0103/mentorconnect---student-mentorship-platform/blob/main/server/MentorshipBackend/src/main/java/com/mentorship/service/MCQPracticeSessionService.java"
click node_mcq_repository "https://github.com/manishdev0103/mentorconnect---student-mentorship-platform/blob/main/server/MentorshipBackend/src/main/java/com/mentorship/repository/MCQPracticeSessionRepository.java"
click node_messaging "https://github.com/manishdev0103/mentorconnect---student-mentorship-platform/blob/main/server/MentorshipBackend/src/main/java/com/mentorship/controller/MessageController.java"
click node_payment_controller "https://github.com/manishdev0103/mentorconnect---student-mentorship-platform/blob/main/PaymentService/Controllers/PaymentController.cs"
click node_payment_store "https://github.com/manishdev0103/mentorconnect---student-mentorship-platform/blob/main/PaymentService/Data/PaymentDbContext.cs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app,node_mentor_discovery,node_student_signup,node_mentor_signup,node_api_client toneBlue
class node_auth_service,node_auth_api,node_auth_service_backend,node_user_details,node_repositories toneAmber
class node_student_api,node_student_service,node_session_service,node_domain_entities toneMint
class node_mcq_service,node_mcq_repository,node_messaging toneRose
class node_payment_controller,node_payment_store,node_student,node_mentor,node_admin,node_razorpay,node_backend toneIndigo
```

## Components

### Web client

- [Route application](https://github.com/manishdev0103/mentorconnect---student-mentorship-platform/blob/main/client/src/App.jsx): `client/src/App.jsx`
- [Mentor discovery](https://github.com/manishdev0103/mentorconnect---student-mentorship-platform/blob/main/client/src/pages/MentorListing/MentorListing.jsx): `client/src/pages/MentorListing/MentorListing.jsx`
- [Student signup](https://github.com/manishdev0103/mentorconnect---student-mentorship-platform/blob/main/client/src/pages/Register/StudentRegister.jsx): `client/src/pages/Register/StudentRegister.jsx`
- [Mentor signup](https://github.com/manishdev0103/mentorconnect---student-mentorship-platform/blob/main/client/src/pages/Register/MentorRegister.jsx): `client/src/pages/Register/MentorRegister.jsx`
- [API client](https://github.com/manishdev0103/mentorconnect---student-mentorship-platform/blob/main/client/src/API/api.js): `client/src/API/api.js`

### Identity and access

- [Auth client](https://github.com/manishdev0103/mentorconnect---student-mentorship-platform/blob/main/client/src/API/authService.js): `client/src/API/authService.js`
- [Authentication API](https://github.com/manishdev0103/mentorconnect---student-mentorship-platform/blob/main/server/MentorshipBackend/src/main/java/com/mentorship/controller/AuthController.java): `server/MentorshipBackend/src/main/java/com/mentorship/controller/AuthController.java`
- [Authentication service](https://github.com/manishdev0103/mentorconnect---student-mentorship-platform/blob/main/server/MentorshipBackend/src/main/java/com/mentorship/service/AuthService.java): `server/MentorshipBackend/src/main/java/com/mentorship/service/AuthService.java`
- [User details loader](https://github.com/manishdev0103/mentorconnect---student-mentorship-platform/blob/main/server/MentorshipBackend/src/main/java/com/mentorship/security/CustomUserDetailsService.java): `server/MentorshipBackend/src/main/java/com/mentorship/security/CustomUserDetailsService.java`
- [Data repositories](https://github.com/manishdev0103/mentorconnect---student-mentorship-platform/tree/main/server/MentorshipBackend/src/main/java/com/mentorship/repository): `server/MentorshipBackend/src/main/java/com/mentorship/repository`

### Mentorship services

- [Student API](https://github.com/manishdev0103/mentorconnect---student-mentorship-platform/blob/main/server/MentorshipBackend/src/main/java/com/mentorship/controller/StudentController.java): `server/MentorshipBackend/src/main/java/com/mentorship/controller/StudentController.java`
- [Student services](https://github.com/manishdev0103/mentorconnect---student-mentorship-platform/blob/main/server/MentorshipBackend/src/main/java/com/mentorship/service/StudentService.java): `server/MentorshipBackend/src/main/java/com/mentorship/service/StudentService.java`
- [Session services](https://github.com/manishdev0103/mentorconnect---student-mentorship-platform/blob/main/server/MentorshipBackend/src/main/java/com/mentorship/service/SessionService.java): `server/MentorshipBackend/src/main/java/com/mentorship/service/SessionService.java`
- [Mentorship domain](https://github.com/manishdev0103/mentorconnect---student-mentorship-platform/tree/main/server/MentorshipBackend/src/main/java/com/mentorship/entities): `server/MentorshipBackend/src/main/java/com/mentorship/entities`

### Learning and communication

- [Practice sessions](https://github.com/manishdev0103/mentorconnect---student-mentorship-platform/blob/main/server/MentorshipBackend/src/main/java/com/mentorship/service/MCQPracticeSessionService.java): `server/MentorshipBackend/src/main/java/com/mentorship/service/MCQPracticeSessionService.java`
- [Practice storage](https://github.com/manishdev0103/mentorconnect---student-mentorship-platform/blob/main/server/MentorshipBackend/src/main/java/com/mentorship/repository/MCQPracticeSessionRepository.java): `server/MentorshipBackend/src/main/java/com/mentorship/repository/MCQPracticeSessionRepository.java`
- [Messaging API](https://github.com/manishdev0103/mentorconnect---student-mentorship-platform/blob/main/server/MentorshipBackend/src/main/java/com/mentorship/controller/MessageController.java): `server/MentorshipBackend/src/main/java/com/mentorship/controller/MessageController.java`

### Payments

- [Payment controller](https://github.com/manishdev0103/mentorconnect---student-mentorship-platform/blob/main/PaymentService/Controllers/PaymentController.cs): `PaymentService/Controllers/PaymentController.cs`
- [Subscription store](https://github.com/manishdev0103/mentorconnect---student-mentorship-platform/blob/main/PaymentService/Data/PaymentDbContext.cs): `PaymentService/Data/PaymentDbContext.cs`

### Other components

- **Student**
- **Mentor**
- **Administrator**
- **Razorpay**
- **Mentorship backend**

## Connections

- Route application → Mentor discovery: routes to (evidence: `client/src/App.jsx`)
- Route application → Student signup: routes to (evidence: `client/src/App.jsx`)
- Route application → Mentor signup: routes to (evidence: `client/src/App.jsx`)
- Student signup → Auth client: uses
- Mentor signup → Auth client: uses
- Auth client → API client: sends requests (evidence: `client/src/API/authService.js`)
- Student → Student signup: registers
- Mentor → Mentor signup: registers
- Administrator → Route application: uses routes
- User details loader → Data repositories: loads identity (evidence: `server/MentorshipBackend/src/main/java/com/mentorship/security/CustomUserDetailsService.java`)
- Student API → Student services: delegates (evidence: `server/MentorshipBackend/src/main/java/com/mentorship/controller/StudentController.java`)
- Student API → Practice sessions: queries practice (evidence: `server/MentorshipBackend/src/main/java/com/mentorship/controller/StudentController.java`)
- Student services → Mentorship domain: uses domain
- Session services → Mentorship domain: uses domain
- Practice sessions → Practice storage: reads and saves (evidence: `server/MentorshipBackend/src/main/java/com/mentorship/service/MCQPracticeSessionService.java`)
- Practice sessions → Data repositories: loads participants (evidence: `server/MentorshipBackend/src/main/java/com/mentorship/service/MCQPracticeSessionService.java`)
- Student → Mentor discovery: browses
- Mentor → Messaging API: messages
- Student → Payment controller: pays
- Payment controller → Razorpay: creates orders (evidence: `PaymentService/Controllers/PaymentController.cs`)
- Payment controller → Subscription store: saves subscription (evidence: `PaymentService/Controllers/PaymentController.cs`)
- Payment controller → Mentorship backend: notifies session (evidence: `PaymentService/Controllers/PaymentController.cs`)
- Payment controller → Mentorship backend: notifies subscription (evidence: `PaymentService/Controllers/PaymentController.cs`)
