# phanikumar122/skilltern architecture

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

- Interactive diagram: https://gitdiagram.com/phanikumar122/skilltern
- Repository: https://github.com/phanikumar122/skilltern

## Overview

InternMatch is a role-based internship marketplace. Students create skill profiles, discover ranked eligible internships, apply, and track status; companies post roles, review matched candidates and applications, and respond; admins manage users, moderate postings, and view statistics. The main path runs from the browser through the Express API to matching and application handling backed by MongoDB. The README documents the product capabilities; sampled backend excerpts support the key matching and application relationships, while some frontend wiring is not shown.

Main entry points: [`smart-internship-checker/backend/controllers/adminController.js`](https://github.com/phanikumar122/skilltern/blob/main/smart-internship-checker/backend/controllers/adminController.js) (Admin management), [`smart-internship-checker/backend/models/Company.js`](https://github.com/phanikumar122/skilltern/blob/main/smart-internship-checker/backend/models/Company.js) (Company records), [`smart-internship-checker/backend/controllers/applicationController.js`](https://github.com/phanikumar122/skilltern/blob/main/smart-internship-checker/backend/controllers/applicationController.js) (Apply and review), [`smart-internship-checker/backend/models/Student.js`](https://github.com/phanikumar122/skilltern/blob/main/smart-internship-checker/backend/models/Student.js) (Student records)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web experience"]
  node_student_ui["Student dashboard<br/>[student.js]"]
  node_company_ui["Company dashboard<br/>[company.js]"]
  node_admin_ui["Admin dashboard<br/>[admin.js]"]
  node_api_client["API client<br/>[api.js]"]
  node_express["Express server<br/>[server.js]"]
end

subgraph group_identity["Identity and profiles"]
  node_auth_flow["Authentication<br/>[authController.js]"]
  node_auth_guard["JWT and role guards<br/>[auth.js]"]
  node_student_profile["Student profiles"]
  node_company_profile["Company profiles"]
  node_user_store[("User records<br/>[User.js]")]
  node_student_store[("Student records<br/>[Student.js]")]
  node_company_store[("Company records<br/>[Company.js]")]
end

subgraph group_opportunities["Internships and matching"]
  node_internships["Internship management"]
  node_matching["Rule-based matching"]
  node_internship_store[("Internship records<br/>[Internship.js]")]
end

subgraph group_applications["Applications"]
  node_application_flow["Apply and review"]
  node_application_store[("Application records<br/>[Application.js]")]
end

subgraph group_operations["Platform administration"]
  node_admin_flow["Admin management<br/>[adminController.js]"]
  node_admin_routes["Admin API routes<br/>[admin.js]"]
end

node_students(("Students"))
node_companies(("Companies"))
node_admins(("Admins"))

node_students -->|"use"| node_student_ui
node_companies -->|"use"| node_company_ui
node_admins -->|"use"| node_admin_ui
node_student_ui -.->|"request API"| node_api_client
node_company_ui -.->|"request API"| node_api_client
node_admin_ui -.->|"request API"| node_api_client
node_api_client -->|"HTTP requests"| node_express
node_express -->|"mounts routes"| node_auth_flow
node_express -->|"mounts routes"| node_admin_routes
node_auth_flow -->|"reads and writes"| node_user_store
node_auth_flow -->|"creates profile"| node_student_store
node_auth_flow -->|"creates profile"| node_company_store
node_student_profile -->|"reads and writes"| node_student_store
node_company_profile -->|"reads and writes"| node_company_store
node_internships -->|"reads and writes"| node_internship_store
node_internships -->|"resolves company"| node_company_store
node_matching -->|"reads profiles"| node_student_store
node_matching -->|"reads postings"| node_internship_store
node_matching -->|"checks ownership"| node_company_store
node_application_flow -->|"loads applicant"| node_student_store
node_application_flow -->|"loads posting"| node_internship_store
node_application_flow -->|"checks ownership"| node_company_store
node_application_flow -->|"calculates score"| node_matching
node_application_flow -->|"creates and updates"| node_application_store
node_admin_routes -->|"dispatches"| node_admin_flow
node_admin_flow -->|"manages users"| node_user_store
node_admin_flow -->|"reads and deletes"| node_student_store
node_admin_flow -->|"reads and deletes"| node_company_store
node_admin_flow -->|"moderates postings"| node_internship_store
node_admin_flow -->|"counts applications"| node_application_store

click node_student_ui "https://github.com/phanikumar122/skilltern/blob/main/smart-internship-checker/frontend/js/student.js"
click node_company_ui "https://github.com/phanikumar122/skilltern/blob/main/smart-internship-checker/frontend/js/company.js"
click node_admin_ui "https://github.com/phanikumar122/skilltern/blob/main/smart-internship-checker/frontend/js/admin.js"
click node_api_client "https://github.com/phanikumar122/skilltern/blob/main/smart-internship-checker/frontend/js/api.js"
click node_express "https://github.com/phanikumar122/skilltern/blob/main/smart-internship-checker/backend/server.js"
click node_auth_flow "https://github.com/phanikumar122/skilltern/blob/main/smart-internship-checker/backend/controllers/authController.js"
click node_auth_guard "https://github.com/phanikumar122/skilltern/blob/main/smart-internship-checker/backend/middleware/auth.js"
click node_student_profile "https://github.com/phanikumar122/skilltern/blob/main/smart-internship-checker/backend/controllers/studentController.js"
click node_company_profile "https://github.com/phanikumar122/skilltern/blob/main/smart-internship-checker/backend/controllers/companyController.js"
click node_user_store "https://github.com/phanikumar122/skilltern/blob/main/smart-internship-checker/backend/models/User.js"
click node_student_store "https://github.com/phanikumar122/skilltern/blob/main/smart-internship-checker/backend/models/Student.js"
click node_company_store "https://github.com/phanikumar122/skilltern/blob/main/smart-internship-checker/backend/models/Company.js"
click node_internships "https://github.com/phanikumar122/skilltern/blob/main/smart-internship-checker/backend/controllers/internshipController.js"
click node_matching "https://github.com/phanikumar122/skilltern/blob/main/smart-internship-checker/backend/controllers/matchingController.js"
click node_internship_store "https://github.com/phanikumar122/skilltern/blob/main/smart-internship-checker/backend/models/Internship.js"
click node_application_flow "https://github.com/phanikumar122/skilltern/blob/main/smart-internship-checker/backend/controllers/applicationController.js"
click node_application_store "https://github.com/phanikumar122/skilltern/blob/main/smart-internship-checker/backend/models/Application.js"
click node_admin_flow "https://github.com/phanikumar122/skilltern/blob/main/smart-internship-checker/backend/controllers/adminController.js"
click node_admin_routes "https://github.com/phanikumar122/skilltern/blob/main/smart-internship-checker/backend/routes/admin.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_student_ui,node_company_ui,node_admin_ui,node_api_client,node_express toneBlue
class node_auth_flow,node_auth_guard,node_student_profile,node_company_profile,node_user_store,node_student_store,node_company_store toneAmber
class node_internships,node_matching,node_internship_store toneMint
class node_application_flow,node_application_store toneRose
class node_admin_flow,node_admin_routes,node_students,node_companies,node_admins toneIndigo
```

## Components

### Web experience

- [Student dashboard](https://github.com/phanikumar122/skilltern/blob/main/smart-internship-checker/frontend/js/student.js): `smart-internship-checker/frontend/js/student.js`
- [Company dashboard](https://github.com/phanikumar122/skilltern/blob/main/smart-internship-checker/frontend/js/company.js): `smart-internship-checker/frontend/js/company.js`
- [Admin dashboard](https://github.com/phanikumar122/skilltern/blob/main/smart-internship-checker/frontend/js/admin.js): `smart-internship-checker/frontend/js/admin.js`
- [API client](https://github.com/phanikumar122/skilltern/blob/main/smart-internship-checker/frontend/js/api.js): `smart-internship-checker/frontend/js/api.js`
- [Express server](https://github.com/phanikumar122/skilltern/blob/main/smart-internship-checker/backend/server.js): `smart-internship-checker/backend/server.js`

### Identity and profiles

- [Authentication](https://github.com/phanikumar122/skilltern/blob/main/smart-internship-checker/backend/controllers/authController.js): `smart-internship-checker/backend/controllers/authController.js`
- [JWT and role guards](https://github.com/phanikumar122/skilltern/blob/main/smart-internship-checker/backend/middleware/auth.js): `smart-internship-checker/backend/middleware/auth.js`
- [Student profiles](https://github.com/phanikumar122/skilltern/blob/main/smart-internship-checker/backend/controllers/studentController.js): `smart-internship-checker/backend/controllers/studentController.js`
- [Company profiles](https://github.com/phanikumar122/skilltern/blob/main/smart-internship-checker/backend/controllers/companyController.js): `smart-internship-checker/backend/controllers/companyController.js`
- [User records](https://github.com/phanikumar122/skilltern/blob/main/smart-internship-checker/backend/models/User.js): `smart-internship-checker/backend/models/User.js`
- [Student records](https://github.com/phanikumar122/skilltern/blob/main/smart-internship-checker/backend/models/Student.js): `smart-internship-checker/backend/models/Student.js`
- [Company records](https://github.com/phanikumar122/skilltern/blob/main/smart-internship-checker/backend/models/Company.js): `smart-internship-checker/backend/models/Company.js`

### Internships and matching

- [Internship management](https://github.com/phanikumar122/skilltern/blob/main/smart-internship-checker/backend/controllers/internshipController.js): `smart-internship-checker/backend/controllers/internshipController.js`
- [Rule-based matching](https://github.com/phanikumar122/skilltern/blob/main/smart-internship-checker/backend/controllers/matchingController.js): `smart-internship-checker/backend/controllers/matchingController.js`
- [Internship records](https://github.com/phanikumar122/skilltern/blob/main/smart-internship-checker/backend/models/Internship.js): `smart-internship-checker/backend/models/Internship.js`

### Applications

- [Apply and review](https://github.com/phanikumar122/skilltern/blob/main/smart-internship-checker/backend/controllers/applicationController.js): `smart-internship-checker/backend/controllers/applicationController.js`
- [Application records](https://github.com/phanikumar122/skilltern/blob/main/smart-internship-checker/backend/models/Application.js): `smart-internship-checker/backend/models/Application.js`

### Platform administration

- [Admin management](https://github.com/phanikumar122/skilltern/blob/main/smart-internship-checker/backend/controllers/adminController.js): `smart-internship-checker/backend/controllers/adminController.js`
- [Admin API routes](https://github.com/phanikumar122/skilltern/blob/main/smart-internship-checker/backend/routes/admin.js): `smart-internship-checker/backend/routes/admin.js`

### Other components

- **Students**
- **Companies**
- **Admins**

## Connections

- Students → Student dashboard: use (evidence: `README.md`)
- Companies → Company dashboard: use (evidence: `README.md`)
- Admins → Admin dashboard: use (evidence: `README.md`)
- Student dashboard → API client: request API
- Company dashboard → API client: request API
- Admin dashboard → API client: request API
- API client → Express server: HTTP requests (evidence: `README.md`)
- Express server → Authentication: mounts routes (evidence: `smart-internship-checker/backend/server.js`)
- Express server → Admin API routes: mounts routes (evidence: `smart-internship-checker/backend/server.js`)
- Authentication → User records: reads and writes (evidence: `smart-internship-checker/backend/controllers/authController.js`)
- Authentication → Student records: creates profile (evidence: `smart-internship-checker/backend/controllers/authController.js`)
- Authentication → Company records: creates profile (evidence: `smart-internship-checker/backend/controllers/authController.js`)
- Student profiles → Student records: reads and writes (evidence: `smart-internship-checker/backend/controllers/studentController.js`)
- Company profiles → Company records: reads and writes (evidence: `smart-internship-checker/backend/controllers/companyController.js`)
- Internship management → Internship records: reads and writes (evidence: `smart-internship-checker/backend/controllers/internshipController.js`)
- Internship management → Company records: resolves company (evidence: `smart-internship-checker/backend/controllers/internshipController.js`)
- Rule-based matching → Student records: reads profiles (evidence: `smart-internship-checker/backend/controllers/matchingController.js`)
- Rule-based matching → Internship records: reads postings (evidence: `smart-internship-checker/backend/controllers/matchingController.js`)
- Rule-based matching → Company records: checks ownership (evidence: `smart-internship-checker/backend/controllers/matchingController.js`)
- Apply and review → Student records: loads applicant (evidence: `smart-internship-checker/backend/controllers/applicationController.js`)
- Apply and review → Internship records: loads posting (evidence: `smart-internship-checker/backend/controllers/applicationController.js`)
- Apply and review → Company records: checks ownership (evidence: `smart-internship-checker/backend/controllers/applicationController.js`)
- Apply and review → Rule-based matching: calculates score (evidence: `smart-internship-checker/backend/controllers/applicationController.js`)
- Apply and review → Application records: creates and updates (evidence: `smart-internship-checker/backend/controllers/applicationController.js`)
- Admin API routes → Admin management: dispatches (evidence: `smart-internship-checker/backend/routes/admin.js`)
- Admin management → User records: manages users (evidence: `smart-internship-checker/backend/controllers/adminController.js`)
- Admin management → Student records: reads and deletes (evidence: `smart-internship-checker/backend/controllers/adminController.js`)
- Admin management → Company records: reads and deletes (evidence: `smart-internship-checker/backend/controllers/adminController.js`)
- Admin management → Internship records: moderates postings (evidence: `smart-internship-checker/backend/controllers/adminController.js`)
- Admin management → Application records: counts applications (evidence: `smart-internship-checker/backend/controllers/adminController.js`)
