# zayed-rahat/lms_project_dev-team_omega architecture

> Architecture diagram of the GitHub repository zayed-rahat/lms_project_dev-team_omega, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-07-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/zayed-rahat/lms_project_dev-team_omega
- Repository: https://github.com/zayed-rahat/lms_project_dev-team_omega

## Overview

1. This is a three-app LMS monorepo: a Flutter application for Android/iOS/web, a React/Vite client web app, and a TypeScript/Node backend API. The apps are separated by boundary, but they share the same domain model and API contract.

2. The core business domain is learning-management: authentication, users, courses, course content, enrollments, quizzes, forums, attendance, events, profiles, and password recovery. Role separation is central: student, teacher/instructor, admin, and general authenticated user flows appear throughout the repo.

3. The backend (`LMS-ServerAPP`) is the system of record. It is structured as an Express-style layered API with `controller -> service -> model -> route` per feature, plus validators and shared middleware. The source tree is TypeScript under `src/`, with compiled output in `dist/`, showing a build-and-run server rather than direct TS execution.

4. Server request handling is explicitly cross-cutting: route handlers pass through validation middleware, auth middleware, standardized response helpers, and a global error handler. Custom error types are isolated under `app/errors`, so architecture diagrams should show a centralized error/response boundary around all modules.

5. Server modules are feature-based and map closely to LMS capabilities: `User`, `Admin`, `Student`, `Courses`, `Content`, `Enrollment`, `Quizes`, `Forums`, `Attendance`, and `Events`. Each module owns its own route/controller/service/model/validation files, which is a strong bounded-context signal.

6. The backend also owns integration concerns that affect the UI: `sendEmail` for notifications or recovery flows, `uploadImage` plus an `uploads/` directory for persisted media, and date/time formatting utilities. These are not generic helpers; they are part of the application’s data flow and should be shown as server-side support services.

7. The React client (`LMS-ClientAPP`) is a browser SPA built with Vite, TypeScript, Redux, and route-based code organization. It uses a shared `baseAPI` and feature APIs/slices under `src/redux/feature/*`, so the web app’s data flow is component/page -> Redux API layer -> backend API.

8. The web app is strongly role-routed. There are separate route definitions for admin, student, and teacher flows, plus a `PrivateRoute` guard. Pages are grouped by business area rather than technical layer, such as `Courses`, `Quiz`, `Forum`, `Resources`, `StudentPages`, `TeacherPages`, and `AdminPages`.

9. The web client has a distinct analytics/reporting surface that is not just CRUD UI: chart components, ranking/score analytics, and PDF report components exist alongside LMS pages. That means the diagram should include a reporting/analytics branch fed from quiz and student data, not just operational screens.

10. The Flutter app (`LMS-AndroidAPP/flutter_application`) mirrors the same LMS domain but with a mobile-first architecture. It uses a module pattern with `bindings`, `controllers`, and `views`, plus `repositories` and `providers` for data access, indicating a GetX-style separation between UI state and API access.

11. The Flutter data layer is more explicit than the web client’s: there are typed payload/response models for each feature, a dedicated `api_provider`, and a `login_response_provider` for session/user state. The flow is typically route/view -> controller -> repository -> API provider -> backend, with model classes handling serialization boundaries.

12. The mobile app also carries platform and presentation infrastructure: Android and iOS native shells, asset bundles for fonts/icons/images/animations, bilingual strings (`en`, `bn`), theming, and reusable widgets. Those assets are part of the app shell rather than business logic, so they form the presentation boundary around the Flutter feature modules.

13. Across both frontends, the backend API contract is mirrored in the type/model files. Flutter has request/response classes; the React app has TypeScript interfaces under `src/Types`; and both align around the same LMS entities. This is a strong sign that the API is the shared integration boundary between clients and server.

14. Deployment/configuration is separated by app as well: there is a GitHub Actions workflow at the repo root, Vercel config files, and server build artifacts. For an architecture diagram, treat these as delivery/deployment concerns outside the runtime request path, but still part of the system boundary.

Main entry points: [`LMS-ServerAPP/src/app/middlewares`](https://github.com/zayed-rahat/lms_project_dev-team_omega/tree/master/LMS-ServerAPP/src/app/middlewares) (Core middleware), [`LMS-ServerAPP/src/server.ts`](https://github.com/zayed-rahat/lms_project_dev-team_omega/blob/master/LMS-ServerAPP/src/server.ts) (Server entry), [`LMS-ServerAPP/src/app/modules/Courses`](https://github.com/zayed-rahat/lms_project_dev-team_omega/tree/master/LMS-ServerAPP/src/app/modules/Courses) (Learning modules), [`LMS-ClientAPP/src/pages`](https://github.com/zayed-rahat/lms_project_dev-team_omega/tree/master/LMS-ClientAPP/src/pages) (Business pages)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_mobile["Flutter app"]
  node_flutter_shell["App shell<br/>Flutter runtime<br/>[main.dart]"]
  node_flutter_modules["Feature modules<br/>GetX UI"]
  node_flutter_data["Data layer<br/>Repositories/models"]
  node_flutter_assets["Assets"]
end

subgraph group_web["React app"]
  node_web_shell["Web shell<br/>Vite SPA<br/>[App.tsx]"]
  node_web_routes["Role routes<br/>Route guards"]
  node_web_state["Redux API<br/>State/data layer"]
  node_web_pages["Business pages<br/>UI pages"]
  node_web_analytics["Reporting<br/>Analytics UI"]
end

subgraph group_server["Node API"]
  node_server_entry["Server entry<br/>Express bootstrap<br/>[server.ts]"]
  node_server_core["Core middleware<br/>HTTP boundary"]
  node_server_errors["Error types<br/>Error boundary"]
  node_server_modules_a["People & access<br/>Feature modules"]
  node_server_modules_b["Learning modules<br/>Feature modules"]
  node_server_integrations["Support services<br/>App services"]
end

subgraph group_delivery["Delivery"]
  node_deploy["Deploy config<br/>Delivery config<br/>[deploy.yml]"]
end

node_flutter_shell -->|"navigates"| node_flutter_modules
node_flutter_modules -->|"reads/writes"| node_flutter_data
node_flutter_data -->|"API calls"| node_server_entry
node_flutter_shell -->|"renders"| node_flutter_assets
node_web_shell -->|"navigates"| node_web_routes
node_web_routes -->|"loads"| node_web_pages
node_web_pages -->|"dispatches"| node_web_state
node_web_state -->|"API calls"| node_server_entry
node_web_pages -->|"feeds"| node_web_analytics
node_server_entry -->|"passes through"| node_server_core
node_server_core -->|"raises"| node_server_errors
node_server_core -->|"routes to"| node_server_modules_a
node_server_core -->|"routes to"| node_server_modules_b
node_server_modules_a -->|"uses"| node_server_integrations
node_server_modules_b -->|"uses"| node_server_integrations
node_server_modules_a -.->|"shares contract"| node_server_modules_b
node_web_analytics -->|"consumes data"| node_server_modules_b
node_deploy -.->|"deploys"| node_web_shell
node_deploy -.->|"builds"| node_server_entry

click node_flutter_shell "https://github.com/zayed-rahat/lms_project_dev-team_omega/blob/master/LMS-AndroidAPP/flutter_application/lib/main.dart"
click node_flutter_modules "https://github.com/zayed-rahat/lms_project_dev-team_omega/tree/master/LMS-AndroidAPP/flutter_application/lib/app/modules"
click node_flutter_data "https://github.com/zayed-rahat/lms_project_dev-team_omega/tree/master/LMS-AndroidAPP/flutter_application/lib/app/data"
click node_flutter_assets "https://github.com/zayed-rahat/lms_project_dev-team_omega/tree/master/LMS-AndroidAPP/flutter_application/assets"
click node_web_shell "https://github.com/zayed-rahat/lms_project_dev-team_omega/blob/master/LMS-ClientAPP/src/App.tsx"
click node_web_routes "https://github.com/zayed-rahat/lms_project_dev-team_omega/tree/master/LMS-ClientAPP/src/routes"
click node_web_state "https://github.com/zayed-rahat/lms_project_dev-team_omega/tree/master/LMS-ClientAPP/src/redux"
click node_web_pages "https://github.com/zayed-rahat/lms_project_dev-team_omega/tree/master/LMS-ClientAPP/src/pages"
click node_web_analytics "https://github.com/zayed-rahat/lms_project_dev-team_omega/tree/master/LMS-ClientAPP/src/components/Anaytics"
click node_server_entry "https://github.com/zayed-rahat/lms_project_dev-team_omega/blob/master/LMS-ServerAPP/src/server.ts"
click node_server_core "https://github.com/zayed-rahat/lms_project_dev-team_omega/tree/master/LMS-ServerAPP/src/app/middlewares"
click node_server_errors "https://github.com/zayed-rahat/lms_project_dev-team_omega/tree/master/LMS-ServerAPP/src/app/errors"
click node_server_modules_a "https://github.com/zayed-rahat/lms_project_dev-team_omega/tree/master/LMS-ServerAPP/src/app/modules/User"
click node_server_modules_b "https://github.com/zayed-rahat/lms_project_dev-team_omega/tree/master/LMS-ServerAPP/src/app/modules/Courses"
click node_server_integrations "https://github.com/zayed-rahat/lms_project_dev-team_omega/tree/master/LMS-ServerAPP/src/app/utils"
click node_deploy "https://github.com/zayed-rahat/lms_project_dev-team_omega/blob/master/.github/workflows/deploy.yml"

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_flutter_shell,node_flutter_modules,node_flutter_data,node_flutter_assets toneBlue
class node_web_shell,node_web_routes,node_web_state,node_web_pages,node_web_analytics toneAmber
class node_server_entry,node_server_core,node_server_errors,node_server_modules_a,node_server_modules_b,node_server_integrations toneMint
class node_deploy toneRose
```

## Components

### Flutter app

Mobile-first LMS client with GetX-style module separation and explicit API/data models.

- [App shell](https://github.com/zayed-rahat/lms_project_dev-team_omega/blob/master/LMS-AndroidAPP/flutter_application/lib/main.dart): Flutter runtime · Android/iOS/web shell, main entry, routes, theme, localization, and reusable widgets. · `LMS-AndroidAPP/flutter_application/lib/main.dart`
- [Feature modules](https://github.com/zayed-rahat/lms_project_dev-team_omega/tree/master/LMS-AndroidAPP/flutter_application/lib/app/modules): GetX UI · Route/view/controller modules for login, courses, content, forum, quiz, profile, and recovery flows. · `LMS-AndroidAPP/flutter_application/lib/app/modules`
- [Data layer](https://github.com/zayed-rahat/lms_project_dev-team_omega/tree/master/LMS-AndroidAPP/flutter_application/lib/app/data): Repositories/models · Repositories, API provider, session provider, and typed payload/response models for backend calls. · `LMS-AndroidAPP/flutter_application/lib/app/data`
- [Assets](https://github.com/zayed-rahat/lms_project_dev-team_omega/tree/master/LMS-AndroidAPP/flutter_application/assets): Platform assets · Native shells plus fonts, icons, images, animations, and localized strings for presentation. · `LMS-AndroidAPP/flutter_application/assets`

### React app

Vite SPA with Redux feature APIs, role-based routes, and analytics/reporting UI.

- [Web shell](https://github.com/zayed-rahat/lms_project_dev-team_omega/blob/master/LMS-ClientAPP/src/App.tsx): Vite SPA · Top-level React app, layouts, shared hooks, and route composition for browser delivery. · `LMS-ClientAPP/src/App.tsx`
- [Role routes](https://github.com/zayed-rahat/lms_project_dev-team_omega/tree/master/LMS-ClientAPP/src/routes): Route guards · PrivateRoute plus admin, student, and teacher route sets that partition the SPA by role. · `LMS-ClientAPP/src/routes`
- [Redux API](https://github.com/zayed-rahat/lms_project_dev-team_omega/tree/master/LMS-ClientAPP/src/redux): State/data layer · Base API and feature slices for auth, courses, content, quiz, forums, attendance, events, students, and instructors. · `LMS-ClientAPP/src/redux`
- [Business pages](https://github.com/zayed-rahat/lms_project_dev-team_omega/tree/master/LMS-ClientAPP/src/pages): UI pages · Feature-oriented pages for courses, quiz, forum, resources, student, teacher, and admin workflows. · `LMS-ClientAPP/src/pages`
- [Reporting](https://github.com/zayed-rahat/lms_project_dev-team_omega/tree/master/LMS-ClientAPP/src/components/Anaytics): Analytics UI · Charts, rankings, score distribution, and PDF report components fed by quiz and student data. · `LMS-ClientAPP/src/components/Anaytics`

### Node API

Express-style TypeScript backend that owns the LMS domain and shared API contract.

- [Server entry](https://github.com/zayed-rahat/lms_project_dev-team_omega/blob/master/LMS-ServerAPP/src/server.ts): Express bootstrap · TypeScript source entry that composes the application and compiled dist output for deployment. · `LMS-ServerAPP/src/server.ts`
- [Core middleware](https://github.com/zayed-rahat/lms_project_dev-team_omega/tree/master/LMS-ServerAPP/src/app/middlewares): HTTP boundary · Auth, validation, standardized responses, not-found handling, and the global error handler. · `LMS-ServerAPP/src/app/middlewares`
- [Error types](https://github.com/zayed-rahat/lms_project_dev-team_omega/tree/master/LMS-ServerAPP/src/app/errors): Error boundary · Centralized AppError, validation, and Zod error types used across all request paths. · `LMS-ServerAPP/src/app/errors`
- [People & access](https://github.com/zayed-rahat/lms_project_dev-team_omega/tree/master/LMS-ServerAPP/src/app/modules/User): Feature modules · User, Admin, Student, and role-centric access flows with per-feature controller/service/model/route structure. · `LMS-ServerAPP/src/app/modules/User`
- [Learning modules](https://github.com/zayed-rahat/lms_project_dev-team_omega/tree/master/LMS-ServerAPP/src/app/modules/Courses): Feature modules · Courses, Content, Enrollment, Quizes, Forums, Attendance, Events, and Notes domain modules. · `LMS-ServerAPP/src/app/modules/Courses`
- [Support services](https://github.com/zayed-rahat/lms_project_dev-team_omega/tree/master/LMS-ServerAPP/src/app/utils): App services · Email notifications, image upload storage, and time/date formatting utilities used by domain flows. · `LMS-ServerAPP/src/app/utils`

### Delivery

Repo-level deployment and build concerns outside the runtime request path.

- [Deploy config](https://github.com/zayed-rahat/lms_project_dev-team_omega/blob/master/.github/workflows/deploy.yml): Delivery config · GitHub Actions workflow and Vercel configuration for app deployment and build delivery. · `.github/workflows/deploy.yml`

## Connections

- App shell → Feature modules: navigates · App shell loads feature modules through route composition.
- Feature modules → Data layer: reads/writes · Controllers and repositories call the data layer for API access and session state.
- Data layer → Server entry: API calls · Typed request/response models align with the shared backend contract.
- App shell → Assets: renders · Presentation layer consumes assets, localization, and theming resources.
- Web shell → Role routes: navigates · SPA composition is driven by guarded role routes.
- Role routes → Business pages: loads · Routes resolve into business-area pages.
- Business pages → Redux API: dispatches · Pages and components use Redux feature APIs and slices for server communication.
- Redux API → Server entry: API calls · Shared base API talks to the backend as system of record.
- Business pages → Reporting: feeds · Quiz and student data flow into charts and PDF reporting surfaces.
- Server entry → Core middleware: passes through · All incoming requests traverse auth, validation, response, and error middleware.
- Core middleware → Error types: raises · Cross-cutting failures are normalized into shared error types.
- Core middleware → People & access: routes to · People and access requests enter the feature modules.
- Core middleware → Learning modules: routes to · Learning domain requests enter the feature modules.
- People & access → Support services: uses · User and recovery flows invoke email, image, and time utilities.
- Learning modules → Support services: uses · Course, content, quiz, and event flows depend on shared support services.
- People & access → Learning modules: shares contract · Role and identity data are reused across learning features.
- Reporting → Learning modules: consumes data · Reporting surfaces derive from quiz, course, and student records.
- Deploy config → Web shell: deploys · Root delivery config includes the web client deployment path.
- Deploy config → Server entry: builds · Delivery config also covers the server build/run artifact path.
