# shashank-9676/skillopus architecture

> Architecture diagram of the GitHub repository shashank-9676/skillopus, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-08). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/shashank-9676/skillopus
- Repository: https://github.com/shashank-9676/skillopus

## Overview

SkillOpus is an organisation-focused LMS with role-specific admin, instructor and student workflows, plus an interview feature represented in the application and API. Users authenticate, browse or manage courses, request and approve enrolments, complete lessons, and review progress; administrators also manage instructors and view statistics. The graph includes the interview subsystem and separate AI service, but the supplied excerpts do not establish how they integrate. Some feature-to-API relationships are documented only at the README level.

Main entry points: [`Frontend/src/App.jsx`](https://github.com/shashank-9676/skillopus/blob/main/Frontend/src/App.jsx) (Route application), [`Backend/index.js`](https://github.com/shashank-9676/skillopus/blob/main/Backend/index.js) (Express API), [`Backend/routes/CourseRoutes.js`](https://github.com/shashank-9676/skillopus/blob/main/Backend/routes/CourseRoutes.js) (Course routes), [`Backend/controllers/CourseController.js`](https://github.com/shashank-9676/skillopus/blob/main/Backend/controllers/CourseController.js) (Course and lesson operations)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Web experience"]
  node_webapp["Route application<br/>[App.jsx]"]
  node_authui["Auth state<br/>[AuthContext.jsx]"]
  node_dashboards["Role dashboards<br/>[Home.jsx]"]
end

subgraph group_learning["Learning workflows"]
  node_coursebrowse["Course browsing<br/>[Courses.jsx]"]
  node_coursedetail["Course detail<br/>[CourseDetail.jsx]"]
  node_lessonview["Lesson viewing<br/>[LessonCard.jsx]"]
  node_progressui["Learner progress"]
  node_admin["Admin management<br/>[AdminDashboard.jsx]"]
  node_instructor["Instructor tools"]
  node_courseroutes["Course routes<br/>[CourseRoutes.js]"]
  node_coursecontroller["Course and lesson operations"]
  node_enrollroutes["Enrolment routes"]
  node_enrollcontroller["Enrolment and progress"]
  node_stats["Dashboard statistics<br/>[StatsController.js]"]
end

subgraph group_identity["Identity and organisation"]
  node_login["Login and registration<br/>[Register.jsx]"]
  node_orgbrowse["Organisation directory<br/>[Organizations.jsx]"]
  node_authroutes["Auth routes<br/>[AuthRouter.js]"]
  node_authcontroller["Authentication<br/>[AuthController.js]"]
  node_authmw["Token and role checks<br/>[auth.js]"]
  node_organization["Organisation operations"]
end

subgraph group_interview["Interview feature"]
  node_interviewui["Interview interface<br/>[InterviewPage.jsx]"]
  node_interviewviews["Interview views<br/>[ChatView.jsx]"]
  node_interviewroutes["Interview routes<br/>[InterviewRoutes.js]"]
  node_interviewcontroller["Interview sessions"]
  node_aiservice["AI service<br/>[app.py]"]
end

subgraph group_platform["API and persistence"]
  node_api["Express API<br/>[index.js]"]
  node_userstore[("User records<br/>[User.js]")]
  node_coursestore[("Course records<br/>[Course.js]")]
  node_enrollmentstore[("Enrolment records<br/>[Enrollment.js]")]
  node_interviewstore[("Interview records")]
  node_orgstore[("Organisation records<br/>[Organization.js]")]
  node_cloudinary[("Video storage<br/>[cloudinary.js]")]
end

node_users(("Users"))

node_users -->|"use"| node_webapp
node_webapp -->|"routes to"| node_login
node_webapp -->|"routes to"| node_dashboards
node_webapp -->|"routes to"| node_coursebrowse
node_webapp -->|"routes to"| node_coursedetail
node_webapp -->|"routes to"| node_progressui
node_webapp -->|"routes to"| node_orgbrowse
node_webapp -->|"routes to"| node_interviewui
node_webapp -->|"provides auth"| node_authui
node_authui -->|"checks profile"| node_api
node_dashboards -->|"renders"| node_admin
node_dashboards -->|"renders"| node_instructor
node_coursebrowse -->|"opens courses"| node_coursedetail
node_coursedetail -->|"renders"| node_lessonview
node_login -->|"updates auth"| node_authui
node_api -->|"mounts"| node_authroutes
node_api -->|"mounts"| node_courseroutes
node_api -->|"mounts"| node_enrollroutes
node_api -->|"mounts"| node_interviewroutes
node_authroutes -->|"dispatches"| node_authcontroller
node_authroutes -->|"checks token"| node_authmw
node_courseroutes -->|"dispatches"| node_coursecontroller
node_courseroutes -->|"checks access"| node_authmw
node_courseroutes -->|"uploads video"| node_cloudinary
node_enrollroutes -->|"dispatches"| node_enrollcontroller
node_enrollroutes -->|"checks token"| node_authmw
node_interviewroutes -->|"dispatches"| node_interviewcontroller
node_interviewroutes -->|"checks token"| node_authmw
node_interviewui -->|"renders"| node_interviewviews
node_coursecontroller -->|"reads and writes"| node_coursestore
node_coursecontroller -->|"reads"| node_userstore
node_coursecontroller -->|"reads and deletes"| node_enrollmentstore
node_enrollcontroller -->|"reads and writes"| node_enrollmentstore
node_enrollcontroller -->|"reads"| node_coursestore
node_enrollcontroller -->|"reads"| node_userstore
node_authcontroller -->|"reads and writes"| node_userstore
node_authcontroller -->|"reads"| node_orgstore
node_interviewcontroller -->|"manages sessions"| node_interviewstore
node_admin -->|"uses LMS API"| node_api
node_instructor -->|"uses LMS API"| node_api
node_coursebrowse -->|"uses LMS API"| node_api
node_progressui -->|"uses LMS API"| node_api
node_orgbrowse -.->|"lists organisations"| node_organization
node_interviewcontroller -.->|"possible integration"| node_aiservice

click node_webapp "https://github.com/shashank-9676/skillopus/blob/main/Frontend/src/App.jsx"
click node_authui "https://github.com/shashank-9676/skillopus/blob/main/Frontend/src/context/AuthContext.jsx"
click node_login "https://github.com/shashank-9676/skillopus/blob/main/Frontend/src/Components/Register.jsx"
click node_dashboards "https://github.com/shashank-9676/skillopus/blob/main/Frontend/src/Components/Home.jsx"
click node_coursebrowse "https://github.com/shashank-9676/skillopus/blob/main/Frontend/src/Components/Courses.jsx"
click node_coursedetail "https://github.com/shashank-9676/skillopus/blob/main/Frontend/src/Components/CourseDetail.jsx"
click node_lessonview "https://github.com/shashank-9676/skillopus/blob/main/Frontend/src/Components/LessonCard.jsx"
click node_progressui "https://github.com/shashank-9676/skillopus/blob/main/Frontend/src/Components/StudentProgress.jsx"
click node_admin "https://github.com/shashank-9676/skillopus/blob/main/Frontend/src/Components/AdminDashboard.jsx"
click node_instructor "https://github.com/shashank-9676/skillopus/blob/main/Frontend/src/Components/InstructorDashboard.jsx"
click node_orgbrowse "https://github.com/shashank-9676/skillopus/blob/main/Frontend/src/Components/Organizations.jsx"
click node_interviewui "https://github.com/shashank-9676/skillopus/blob/main/Frontend/src/Components/InterviewPage.jsx"
click node_interviewviews "https://github.com/shashank-9676/skillopus/blob/main/Frontend/src/Components/Interview/ChatView.jsx"
click node_api "https://github.com/shashank-9676/skillopus/blob/main/Backend/index.js"
click node_authroutes "https://github.com/shashank-9676/skillopus/blob/main/Backend/routes/AuthRouter.js"
click node_authcontroller "https://github.com/shashank-9676/skillopus/blob/main/Backend/controllers/AuthController.js"
click node_authmw "https://github.com/shashank-9676/skillopus/blob/main/Backend/middlewares/auth.js"
click node_courseroutes "https://github.com/shashank-9676/skillopus/blob/main/Backend/routes/CourseRoutes.js"
click node_coursecontroller "https://github.com/shashank-9676/skillopus/blob/main/Backend/controllers/CourseController.js"
click node_enrollroutes "https://github.com/shashank-9676/skillopus/blob/main/Backend/routes/EnrollmentRoutes.js"
click node_enrollcontroller "https://github.com/shashank-9676/skillopus/blob/main/Backend/controllers/EnrollmentController.js"
click node_stats "https://github.com/shashank-9676/skillopus/blob/main/Backend/controllers/StatsController.js"
click node_organization "https://github.com/shashank-9676/skillopus/blob/main/Backend/controllers/OrganizationController.js"
click node_interviewroutes "https://github.com/shashank-9676/skillopus/blob/main/Backend/routes/InterviewRoutes.js"
click node_interviewcontroller "https://github.com/shashank-9676/skillopus/blob/main/Backend/controllers/InterviewController.js"
click node_aiservice "https://github.com/shashank-9676/skillopus/blob/main/AIService/app.py"
click node_userstore "https://github.com/shashank-9676/skillopus/blob/main/Backend/models/User.js"
click node_coursestore "https://github.com/shashank-9676/skillopus/blob/main/Backend/models/Course.js"
click node_enrollmentstore "https://github.com/shashank-9676/skillopus/blob/main/Backend/models/Enrollment.js"
click node_interviewstore "https://github.com/shashank-9676/skillopus/blob/main/Backend/models/InterviewSession.js"
click node_orgstore "https://github.com/shashank-9676/skillopus/blob/main/Backend/models/Organization.js"
click node_cloudinary "https://github.com/shashank-9676/skillopus/blob/main/Backend/config/cloudinary.js"

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_webapp,node_authui,node_dashboards,node_users toneBlue
class node_coursebrowse,node_coursedetail,node_lessonview,node_progressui,node_admin,node_instructor,node_courseroutes,node_coursecontroller,node_enrollroutes,node_enrollcontroller,node_stats toneAmber
class node_login,node_orgbrowse,node_authroutes,node_authcontroller,node_authmw,node_organization toneMint
class node_interviewui,node_interviewviews,node_interviewroutes,node_interviewcontroller,node_aiservice toneRose
class node_api,node_userstore,node_coursestore,node_enrollmentstore,node_interviewstore,node_orgstore,node_cloudinary toneIndigo
```

## Components

### Web experience

- [Route application](https://github.com/shashank-9676/skillopus/blob/main/Frontend/src/App.jsx): `Frontend/src/App.jsx`
- [Auth state](https://github.com/shashank-9676/skillopus/blob/main/Frontend/src/context/AuthContext.jsx): `Frontend/src/context/AuthContext.jsx`
- [Role dashboards](https://github.com/shashank-9676/skillopus/blob/main/Frontend/src/Components/Home.jsx): `Frontend/src/Components/Home.jsx`

### Learning workflows

- [Course browsing](https://github.com/shashank-9676/skillopus/blob/main/Frontend/src/Components/Courses.jsx): `Frontend/src/Components/Courses.jsx`
- [Course detail](https://github.com/shashank-9676/skillopus/blob/main/Frontend/src/Components/CourseDetail.jsx): `Frontend/src/Components/CourseDetail.jsx`
- [Lesson viewing](https://github.com/shashank-9676/skillopus/blob/main/Frontend/src/Components/LessonCard.jsx): `Frontend/src/Components/LessonCard.jsx`
- [Learner progress](https://github.com/shashank-9676/skillopus/blob/main/Frontend/src/Components/StudentProgress.jsx): `Frontend/src/Components/StudentProgress.jsx`
- [Admin management](https://github.com/shashank-9676/skillopus/blob/main/Frontend/src/Components/AdminDashboard.jsx): `Frontend/src/Components/AdminDashboard.jsx`
- [Instructor tools](https://github.com/shashank-9676/skillopus/blob/main/Frontend/src/Components/InstructorDashboard.jsx): `Frontend/src/Components/InstructorDashboard.jsx`
- [Course routes](https://github.com/shashank-9676/skillopus/blob/main/Backend/routes/CourseRoutes.js): `Backend/routes/CourseRoutes.js`
- [Course and lesson operations](https://github.com/shashank-9676/skillopus/blob/main/Backend/controllers/CourseController.js): `Backend/controllers/CourseController.js`
- [Enrolment routes](https://github.com/shashank-9676/skillopus/blob/main/Backend/routes/EnrollmentRoutes.js): `Backend/routes/EnrollmentRoutes.js`
- [Enrolment and progress](https://github.com/shashank-9676/skillopus/blob/main/Backend/controllers/EnrollmentController.js): `Backend/controllers/EnrollmentController.js`
- [Dashboard statistics](https://github.com/shashank-9676/skillopus/blob/main/Backend/controllers/StatsController.js): `Backend/controllers/StatsController.js`

### Identity and organisation

- [Login and registration](https://github.com/shashank-9676/skillopus/blob/main/Frontend/src/Components/Register.jsx): `Frontend/src/Components/Register.jsx`
- [Organisation directory](https://github.com/shashank-9676/skillopus/blob/main/Frontend/src/Components/Organizations.jsx): `Frontend/src/Components/Organizations.jsx`
- [Auth routes](https://github.com/shashank-9676/skillopus/blob/main/Backend/routes/AuthRouter.js): `Backend/routes/AuthRouter.js`
- [Authentication](https://github.com/shashank-9676/skillopus/blob/main/Backend/controllers/AuthController.js): `Backend/controllers/AuthController.js`
- [Token and role checks](https://github.com/shashank-9676/skillopus/blob/main/Backend/middlewares/auth.js): `Backend/middlewares/auth.js`
- [Organisation operations](https://github.com/shashank-9676/skillopus/blob/main/Backend/controllers/OrganizationController.js): `Backend/controllers/OrganizationController.js`

### Interview feature

- [Interview interface](https://github.com/shashank-9676/skillopus/blob/main/Frontend/src/Components/InterviewPage.jsx): `Frontend/src/Components/InterviewPage.jsx`
- [Interview views](https://github.com/shashank-9676/skillopus/blob/main/Frontend/src/Components/Interview/ChatView.jsx): `Frontend/src/Components/Interview/ChatView.jsx`
- [Interview routes](https://github.com/shashank-9676/skillopus/blob/main/Backend/routes/InterviewRoutes.js): `Backend/routes/InterviewRoutes.js`
- [Interview sessions](https://github.com/shashank-9676/skillopus/blob/main/Backend/controllers/InterviewController.js): `Backend/controllers/InterviewController.js`
- [AI service](https://github.com/shashank-9676/skillopus/blob/main/AIService/app.py): `AIService/app.py`

### API and persistence

- [Express API](https://github.com/shashank-9676/skillopus/blob/main/Backend/index.js): `Backend/index.js`
- [User records](https://github.com/shashank-9676/skillopus/blob/main/Backend/models/User.js): `Backend/models/User.js`
- [Course records](https://github.com/shashank-9676/skillopus/blob/main/Backend/models/Course.js): `Backend/models/Course.js`
- [Enrolment records](https://github.com/shashank-9676/skillopus/blob/main/Backend/models/Enrollment.js): `Backend/models/Enrollment.js`
- [Interview records](https://github.com/shashank-9676/skillopus/blob/main/Backend/models/InterviewSession.js): `Backend/models/InterviewSession.js`
- [Organisation records](https://github.com/shashank-9676/skillopus/blob/main/Backend/models/Organization.js): `Backend/models/Organization.js`
- [Video storage](https://github.com/shashank-9676/skillopus/blob/main/Backend/config/cloudinary.js): `Backend/config/cloudinary.js`

### Other components

- **Users**

## Connections

- Users → Route application: use (evidence: `Frontend/src/App.jsx`)
- Route application → Login and registration: routes to (evidence: `Frontend/src/App.jsx`)
- Route application → Role dashboards: routes to (evidence: `Frontend/src/App.jsx`)
- Route application → Course browsing: routes to (evidence: `Frontend/src/App.jsx`)
- Route application → Course detail: routes to (evidence: `Frontend/src/App.jsx`)
- Route application → Learner progress: routes to (evidence: `Frontend/src/App.jsx`)
- Route application → Organisation directory: routes to (evidence: `Frontend/src/App.jsx`)
- Route application → Interview interface: routes to (evidence: `Frontend/src/App.jsx`)
- Route application → Auth state: provides auth (evidence: `Frontend/src/main.jsx`)
- Auth state → Express API: checks profile (evidence: `Frontend/src/context/AuthContext.jsx`)
- Role dashboards → Admin management: renders (evidence: `Frontend/src/Components/Home.jsx`)
- Role dashboards → Instructor tools: renders (evidence: `Frontend/src/Components/Home.jsx`)
- Course browsing → Course detail: opens courses (evidence: `Frontend/src/Components/Courses.jsx`)
- Course detail → Lesson viewing: renders (evidence: `Frontend/src/Components/CourseDetail.jsx`)
- Login and registration → Auth state: updates auth
- Express API → Auth routes: mounts (evidence: `Backend/index.js`)
- Express API → Course routes: mounts (evidence: `Backend/index.js`)
- Express API → Enrolment routes: mounts (evidence: `Backend/index.js`)
- Express API → Interview routes: mounts (evidence: `Backend/index.js`)
- Auth routes → Authentication: dispatches (evidence: `Backend/routes/AuthRouter.js`)
- Auth routes → Token and role checks: checks token (evidence: `Backend/routes/AuthRouter.js`)
- Course routes → Course and lesson operations: dispatches (evidence: `Backend/routes/CourseRoutes.js`)
- Course routes → Token and role checks: checks access (evidence: `Backend/routes/CourseRoutes.js`)
- Course routes → Video storage: uploads video (evidence: `Backend/routes/CourseRoutes.js`)
- Enrolment routes → Enrolment and progress: dispatches (evidence: `Backend/routes/EnrollmentRoutes.js`)
- Enrolment routes → Token and role checks: checks token (evidence: `Backend/routes/EnrollmentRoutes.js`)
- Interview routes → Interview sessions: dispatches (evidence: `Backend/routes/InterviewRoutes.js`)
- Interview routes → Token and role checks: checks token (evidence: `Backend/routes/InterviewRoutes.js`)
- Interview interface → Interview views: renders (evidence: `Frontend/src/Components/InterviewPage.jsx`)
- Course and lesson operations → Course records: reads and writes (evidence: `Backend/controllers/CourseController.js`)
- Course and lesson operations → User records: reads (evidence: `Backend/controllers/CourseController.js`)
- Course and lesson operations → Enrolment records: reads and deletes (evidence: `Backend/controllers/CourseController.js`)
- Enrolment and progress → Enrolment records: reads and writes (evidence: `Backend/controllers/EnrollmentController.js`)
- Enrolment and progress → Course records: reads (evidence: `Backend/controllers/EnrollmentController.js`)
- Enrolment and progress → User records: reads (evidence: `Backend/controllers/EnrollmentController.js`)
- Authentication → User records: reads and writes (evidence: `Backend/controllers/AuthController.js`)
- Authentication → Organisation records: reads (evidence: `Backend/controllers/AuthController.js`)
- Interview sessions → Interview records: manages sessions (evidence: `Backend/controllers/InterviewController.js`)
- Admin management → Express API: uses LMS API (evidence: `README.md`)
- Instructor tools → Express API: uses LMS API (evidence: `README.md`)
- Course browsing → Express API: uses LMS API (evidence: `README.md`)
- Learner progress → Express API: uses LMS API (evidence: `README.md`)
- Organisation directory → Organisation operations: lists organisations
- Interview sessions → AI service: possible integration
