# rahul-bhatt-cs/busy-infotech-project architecture

> Architecture diagram of the GitHub repository rahul-bhatt-cs/busy-infotech-project, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-04). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/rahul-bhatt-cs/busy-infotech-project
- Repository: https://github.com/rahul-bhatt-cs/busy-infotech-project

## Overview

LearnWithUs is a Spring Boot REST backend for course delivery and enrollment. Users authenticate with JWT; instructors manage courses and lessons, while learners discover courses, enroll, and update progress. The API also supports bulk enrollment, activity/comments, inactivity alerts, dashboards, CSV exports, and lesson uploads. The README documents the controller→service→repository→MySQL layering; sampled service and repository references support selected internal links. Other feature paths are present in the tree and README, but their implementation was not sampled, so those links are documented rather than inferred from source.

Main entry points: [`src/main/java/com/BUSY/learnWithUs/Repository/CourseRepository.java`](https://github.com/rahul-bhatt-cs/busy-infotech-project/blob/main/src/main/java/com/BUSY/learnWithUs/Repository/CourseRepository.java) (Course records), [`src/main/java/com/BUSY/learnWithUs/Repository/EnrollmentRepository.java`](https://github.com/rahul-bhatt-cs/busy-infotech-project/blob/main/src/main/java/com/BUSY/learnWithUs/Repository/EnrollmentRepository.java) (Enrollment records), [`src/main/java/com/BUSY/learnWithUs/Repository/UserRepository.java`](https://github.com/rahul-bhatt-cs/busy-infotech-project/blob/main/src/main/java/com/BUSY/learnWithUs/Repository/UserRepository.java) (User records), [`src/main/java/com/BUSY/learnWithUs/Service/EnrollmentService.java`](https://github.com/rahul-bhatt-cs/busy-infotech-project/blob/main/src/main/java/com/BUSY/learnWithUs/Service/EnrollmentService.java) (Enrollment rules)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Identity and access"]
  node_authapi["Auth API"]
  node_auth["Authentication<br/>[AuthService.java]"]
  node_jwt["JWT security<br/>[JwtUtils.java]"]
  node_security["Request authorization"]
end

subgraph group_learning["Course delivery"]
  node_courseapi["Course API"]
  node_courses["Course lifecycle<br/>[CourseService.java]"]
  node_lessonapi["Lesson API"]
  node_lessons["Lesson management<br/>[LessonService.java]"]
  node_files["Lesson file storage"]
end

subgraph group_participation["Enrollment and progress"]
  node_enrollapi["Enrollment API"]
  node_enroll["Enrollment rules"]
  node_bulkapi["Bulk enrollment API"]
  node_bulk["Bulk enrollment"]
  node_progress["Progress tracking"]
end

subgraph group_insight["Activity and reporting"]
  node_activity["Activity and comments"]
  node_alerts["Inactivity alerts"]
  node_dashboard["Dashboard statistics"]
  node_export["CSV export"]
end

subgraph group_persistence["Persistence"]
  node_course_repo[("Course records")]
  node_enroll_repo[("Enrollment records")]
  node_user_repo[("User records")]
  node_mysql[("MySQL database")]
end

node_actor(("API clients"))

node_actor -->|"authenticates"| node_authapi
node_actor -->|"requests courses"| node_courseapi
node_actor -->|"manages lessons"| node_lessonapi
node_actor -->|"enrolls"| node_enrollapi
node_actor -->|"bulk enrolls"| node_bulkapi
node_authapi -->|"delegates"| node_auth
node_auth -->|"reads and writes"| node_user_repo
node_auth -->|"generates token"| node_jwt
node_security -.->|"validates tokens"| node_jwt
node_courseapi -->|"delegates"| node_courses
node_courses -->|"queries courses"| node_course_repo
node_courses -->|"reads users"| node_user_repo
node_lessonapi -->|"delegates"| node_lessons
node_lessonapi -->|"stores uploads"| node_files
node_lessons -->|"uses storage"| node_files
node_lessons -->|"loads courses"| node_course_repo
node_enrollapi -->|"delegates"| node_enroll
node_enroll -->|"loads courses"| node_course_repo
node_enroll -->|"checks and saves"| node_enroll_repo
node_enroll -->|"loads learners"| node_user_repo
node_bulkapi -->|"delegates"| node_bulk
node_bulk -->|"loads courses"| node_course_repo
node_bulk -->|"checks enrollments"| node_enroll_repo
node_bulk -->|"matches learners"| node_user_repo
node_progress -.->|"updates progress"| node_enroll_repo
node_activity -.->|"associates courses"| node_course_repo
node_alerts -.->|"checks progress"| node_enroll_repo
node_dashboard -.->|"aggregates courses"| node_course_repo
node_dashboard -.->|"aggregates enrollments"| node_enroll_repo
node_export -.->|"exports progress"| node_enroll_repo
node_course_repo -->|"persists records"| node_mysql
node_enroll_repo -->|"persists records"| node_mysql
node_user_repo -->|"persists records"| node_mysql

click node_authapi "https://github.com/rahul-bhatt-cs/busy-infotech-project/blob/main/src/main/java/com/BUSY/learnWithUs/Controller/AuthController.java"
click node_auth "https://github.com/rahul-bhatt-cs/busy-infotech-project/blob/main/src/main/java/com/BUSY/learnWithUs/Service/AuthService.java"
click node_jwt "https://github.com/rahul-bhatt-cs/busy-infotech-project/blob/main/src/main/java/com/BUSY/learnWithUs/Security/JwtUtils.java"
click node_security "https://github.com/rahul-bhatt-cs/busy-infotech-project/blob/main/src/main/java/com/BUSY/learnWithUs/Security/SecurityConfig.java"
click node_courseapi "https://github.com/rahul-bhatt-cs/busy-infotech-project/blob/main/src/main/java/com/BUSY/learnWithUs/Controller/CourseController.java"
click node_courses "https://github.com/rahul-bhatt-cs/busy-infotech-project/blob/main/src/main/java/com/BUSY/learnWithUs/Service/CourseService.java"
click node_lessonapi "https://github.com/rahul-bhatt-cs/busy-infotech-project/blob/main/src/main/java/com/BUSY/learnWithUs/Controller/LessonController.java"
click node_lessons "https://github.com/rahul-bhatt-cs/busy-infotech-project/blob/main/src/main/java/com/BUSY/learnWithUs/Service/LessonService.java"
click node_files "https://github.com/rahul-bhatt-cs/busy-infotech-project/blob/main/src/main/java/com/BUSY/learnWithUs/Service/FileStorageService.java"
click node_enrollapi "https://github.com/rahul-bhatt-cs/busy-infotech-project/blob/main/src/main/java/com/BUSY/learnWithUs/Controller/EnrollmentController.java"
click node_enroll "https://github.com/rahul-bhatt-cs/busy-infotech-project/blob/main/src/main/java/com/BUSY/learnWithUs/Service/EnrollmentService.java"
click node_bulkapi "https://github.com/rahul-bhatt-cs/busy-infotech-project/blob/main/src/main/java/com/BUSY/learnWithUs/Controller/BulkEnrollmentController.java"
click node_bulk "https://github.com/rahul-bhatt-cs/busy-infotech-project/blob/main/src/main/java/com/BUSY/learnWithUs/Service/BulkEnrollmentService.java"
click node_progress "https://github.com/rahul-bhatt-cs/busy-infotech-project/blob/main/src/main/java/com/BUSY/learnWithUs/Service/ProgressService.java"
click node_activity "https://github.com/rahul-bhatt-cs/busy-infotech-project/blob/main/src/main/java/com/BUSY/learnWithUs/Service/ActivityService.java"
click node_alerts "https://github.com/rahul-bhatt-cs/busy-infotech-project/blob/main/src/main/java/com/BUSY/learnWithUs/Service/InactivityAlertService.java"
click node_dashboard "https://github.com/rahul-bhatt-cs/busy-infotech-project/blob/main/src/main/java/com/BUSY/learnWithUs/Service/DashboardService.java"
click node_export "https://github.com/rahul-bhatt-cs/busy-infotech-project/blob/main/src/main/java/com/BUSY/learnWithUs/Service/CourseExportService.java"
click node_course_repo "https://github.com/rahul-bhatt-cs/busy-infotech-project/blob/main/src/main/java/com/BUSY/learnWithUs/Repository/CourseRepository.java"
click node_enroll_repo "https://github.com/rahul-bhatt-cs/busy-infotech-project/blob/main/src/main/java/com/BUSY/learnWithUs/Repository/EnrollmentRepository.java"
click node_user_repo "https://github.com/rahul-bhatt-cs/busy-infotech-project/blob/main/src/main/java/com/BUSY/learnWithUs/Repository/UserRepository.java"

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_authapi,node_auth,node_jwt,node_security,node_actor toneBlue
class node_courseapi,node_courses,node_lessonapi,node_lessons,node_files toneAmber
class node_enrollapi,node_enroll,node_bulkapi,node_bulk,node_progress toneMint
class node_activity,node_alerts,node_dashboard,node_export toneRose
class node_course_repo,node_enroll_repo,node_user_repo,node_mysql toneIndigo
```

## Components

### Identity and access

- [Auth API](https://github.com/rahul-bhatt-cs/busy-infotech-project/blob/main/src/main/java/com/BUSY/learnWithUs/Controller/AuthController.java): `src/main/java/com/BUSY/learnWithUs/Controller/AuthController.java`
- [Authentication](https://github.com/rahul-bhatt-cs/busy-infotech-project/blob/main/src/main/java/com/BUSY/learnWithUs/Service/AuthService.java): `src/main/java/com/BUSY/learnWithUs/Service/AuthService.java`
- [JWT security](https://github.com/rahul-bhatt-cs/busy-infotech-project/blob/main/src/main/java/com/BUSY/learnWithUs/Security/JwtUtils.java): `src/main/java/com/BUSY/learnWithUs/Security/JwtUtils.java`
- [Request authorization](https://github.com/rahul-bhatt-cs/busy-infotech-project/blob/main/src/main/java/com/BUSY/learnWithUs/Security/SecurityConfig.java): `src/main/java/com/BUSY/learnWithUs/Security/SecurityConfig.java`

### Course delivery

- [Course API](https://github.com/rahul-bhatt-cs/busy-infotech-project/blob/main/src/main/java/com/BUSY/learnWithUs/Controller/CourseController.java): `src/main/java/com/BUSY/learnWithUs/Controller/CourseController.java`
- [Course lifecycle](https://github.com/rahul-bhatt-cs/busy-infotech-project/blob/main/src/main/java/com/BUSY/learnWithUs/Service/CourseService.java): `src/main/java/com/BUSY/learnWithUs/Service/CourseService.java`
- [Lesson API](https://github.com/rahul-bhatt-cs/busy-infotech-project/blob/main/src/main/java/com/BUSY/learnWithUs/Controller/LessonController.java): `src/main/java/com/BUSY/learnWithUs/Controller/LessonController.java`
- [Lesson management](https://github.com/rahul-bhatt-cs/busy-infotech-project/blob/main/src/main/java/com/BUSY/learnWithUs/Service/LessonService.java): `src/main/java/com/BUSY/learnWithUs/Service/LessonService.java`
- [Lesson file storage](https://github.com/rahul-bhatt-cs/busy-infotech-project/blob/main/src/main/java/com/BUSY/learnWithUs/Service/FileStorageService.java): `src/main/java/com/BUSY/learnWithUs/Service/FileStorageService.java`

### Enrollment and progress

- [Enrollment API](https://github.com/rahul-bhatt-cs/busy-infotech-project/blob/main/src/main/java/com/BUSY/learnWithUs/Controller/EnrollmentController.java): `src/main/java/com/BUSY/learnWithUs/Controller/EnrollmentController.java`
- [Enrollment rules](https://github.com/rahul-bhatt-cs/busy-infotech-project/blob/main/src/main/java/com/BUSY/learnWithUs/Service/EnrollmentService.java): `src/main/java/com/BUSY/learnWithUs/Service/EnrollmentService.java`
- [Bulk enrollment API](https://github.com/rahul-bhatt-cs/busy-infotech-project/blob/main/src/main/java/com/BUSY/learnWithUs/Controller/BulkEnrollmentController.java): `src/main/java/com/BUSY/learnWithUs/Controller/BulkEnrollmentController.java`
- [Bulk enrollment](https://github.com/rahul-bhatt-cs/busy-infotech-project/blob/main/src/main/java/com/BUSY/learnWithUs/Service/BulkEnrollmentService.java): `src/main/java/com/BUSY/learnWithUs/Service/BulkEnrollmentService.java`
- [Progress tracking](https://github.com/rahul-bhatt-cs/busy-infotech-project/blob/main/src/main/java/com/BUSY/learnWithUs/Service/ProgressService.java): `src/main/java/com/BUSY/learnWithUs/Service/ProgressService.java`

### Activity and reporting

- [Activity and comments](https://github.com/rahul-bhatt-cs/busy-infotech-project/blob/main/src/main/java/com/BUSY/learnWithUs/Service/ActivityService.java): `src/main/java/com/BUSY/learnWithUs/Service/ActivityService.java`
- [Inactivity alerts](https://github.com/rahul-bhatt-cs/busy-infotech-project/blob/main/src/main/java/com/BUSY/learnWithUs/Service/InactivityAlertService.java): `src/main/java/com/BUSY/learnWithUs/Service/InactivityAlertService.java`
- [Dashboard statistics](https://github.com/rahul-bhatt-cs/busy-infotech-project/blob/main/src/main/java/com/BUSY/learnWithUs/Service/DashboardService.java): `src/main/java/com/BUSY/learnWithUs/Service/DashboardService.java`
- [CSV export](https://github.com/rahul-bhatt-cs/busy-infotech-project/blob/main/src/main/java/com/BUSY/learnWithUs/Service/CourseExportService.java): `src/main/java/com/BUSY/learnWithUs/Service/CourseExportService.java`

### Persistence

- [Course records](https://github.com/rahul-bhatt-cs/busy-infotech-project/blob/main/src/main/java/com/BUSY/learnWithUs/Repository/CourseRepository.java): `src/main/java/com/BUSY/learnWithUs/Repository/CourseRepository.java`
- [Enrollment records](https://github.com/rahul-bhatt-cs/busy-infotech-project/blob/main/src/main/java/com/BUSY/learnWithUs/Repository/EnrollmentRepository.java): `src/main/java/com/BUSY/learnWithUs/Repository/EnrollmentRepository.java`
- [User records](https://github.com/rahul-bhatt-cs/busy-infotech-project/blob/main/src/main/java/com/BUSY/learnWithUs/Repository/UserRepository.java): `src/main/java/com/BUSY/learnWithUs/Repository/UserRepository.java`
- **MySQL database**

### Other components

- **API clients**

## Connections

- API clients → Auth API: authenticates (evidence: `README.md`)
- API clients → Course API: requests courses (evidence: `README.md`)
- API clients → Lesson API: manages lessons (evidence: `README.md`)
- API clients → Enrollment API: enrolls (evidence: `README.md`)
- API clients → Bulk enrollment API: bulk enrolls (evidence: `README.md`)
- Auth API → Authentication: delegates (evidence: `src/main/java/com/BUSY/learnWithUs/Service/AuthService.java`)
- Authentication → User records: reads and writes (evidence: `src/main/java/com/BUSY/learnWithUs/Service/AuthService.java`)
- Authentication → JWT security: generates token (evidence: `src/main/java/com/BUSY/learnWithUs/Service/AuthService.java`)
- Request authorization → JWT security: validates tokens
- Course API → Course lifecycle: delegates (evidence: `src/main/java/com/BUSY/learnWithUs/Controller/CourseController.java`)
- Course lifecycle → Course records: queries courses (evidence: `src/main/java/com/BUSY/learnWithUs/Service/CourseService.java`)
- Course lifecycle → User records: reads users (evidence: `src/main/java/com/BUSY/learnWithUs/Service/CourseService.java`)
- Lesson API → Lesson management: delegates (evidence: `src/main/java/com/BUSY/learnWithUs/Controller/LessonController.java`)
- Lesson API → Lesson file storage: stores uploads (evidence: `src/main/java/com/BUSY/learnWithUs/Controller/LessonController.java`)
- Lesson management → Lesson file storage: uses storage (evidence: `src/main/java/com/BUSY/learnWithUs/Service/LessonService.java`)
- Lesson management → Course records: loads courses (evidence: `src/main/java/com/BUSY/learnWithUs/Service/LessonService.java`)
- Enrollment API → Enrollment rules: delegates (evidence: `src/main/java/com/BUSY/learnWithUs/Controller/EnrollmentController.java`)
- Enrollment rules → Course records: loads courses (evidence: `src/main/java/com/BUSY/learnWithUs/Service/EnrollmentService.java`)
- Enrollment rules → Enrollment records: checks and saves (evidence: `src/main/java/com/BUSY/learnWithUs/Service/EnrollmentService.java`)
- Enrollment rules → User records: loads learners (evidence: `src/main/java/com/BUSY/learnWithUs/Service/EnrollmentService.java`)
- Bulk enrollment API → Bulk enrollment: delegates (evidence: `src/main/java/com/BUSY/learnWithUs/Controller/BulkEnrollmentController.java`)
- Bulk enrollment → Course records: loads courses (evidence: `src/main/java/com/BUSY/learnWithUs/Service/BulkEnrollmentService.java`)
- Bulk enrollment → Enrollment records: checks enrollments (evidence: `src/main/java/com/BUSY/learnWithUs/Service/BulkEnrollmentService.java`)
- Bulk enrollment → User records: matches learners (evidence: `src/main/java/com/BUSY/learnWithUs/Service/BulkEnrollmentService.java`)
- Progress tracking → Enrollment records: updates progress (evidence: `src/main/java/com/BUSY/learnWithUs/Service/ProgressService.java`)
- Activity and comments → Course records: associates courses
- Inactivity alerts → Enrollment records: checks progress (evidence: `src/main/java/com/BUSY/learnWithUs/Service/InactivityAlertService.java`)
- Dashboard statistics → Course records: aggregates courses (evidence: `src/main/java/com/BUSY/learnWithUs/Service/DashboardService.java`)
- Dashboard statistics → Enrollment records: aggregates enrollments (evidence: `src/main/java/com/BUSY/learnWithUs/Service/DashboardService.java`)
- CSV export → Enrollment records: exports progress
- Course records → MySQL database: persists records (evidence: `README.md`)
- Enrollment records → MySQL database: persists records (evidence: `README.md`)
- User records → MySQL database: persists records (evidence: `README.md`)
