# 07jatin/collage-placement-readiness-and-gap-analysis-testing-1- architecture

> Architecture diagram of the GitHub repository 07jatin/collage-placement-readiness-and-gap-analysis-testing-1-, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-04-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/07jatin/collage-placement-readiness-and-gap-analysis-testing-1-
- Repository: https://github.com/07jatin/collage-placement-readiness-and-gap-analysis-testing-1-

## Overview

1. **System shape**
   This is a locally run education-to-job alignment platform with a clear split between a **FastAPI backend** and a **React frontend**. The backend performs all scoring, parsing, and recommendation logic; the frontend is a presentation layer for students and admins.

2. **Primary data sources**
   The application is intentionally data-local. Core inputs live under `backend/data/` as `market_data.json`, `student_data.json`, `historical_placement.csv`, and `test_history.json`. The repo README also implies mock data generation is part of the workflow, so the system can run without an external database.

3. **Backend API boundary**
   `backend/main.py` is the API entrypoint and exposes the main endpoints:
   - `GET /gap_report/{student_id}`
   - `GET /predict_readiness/{student_id}`
   - `GET /admin/skill_gaps`
   
   This is the main integration point for the frontend and the place where student-specific reports are assembled.

4. **Backend service layer**
   The backend business logic is split into focused services under `backend/services/`:
   - `skill_analyzer.py` computes skill overlap/gaps and certification suggestions.
   - `predict_readiness.py` trains or applies a readiness model based on historical placement data.
   - `resume_parser.py` extracts structured signals from uploaded resumes.
   - `llm_resume_analyzer.py` suggests there is an optional AI-assisted resume analysis path.
   - `adzuna_client.py` indicates a market-data ingestion boundary for job postings or labor-market signals.

5. **Readiness prediction pipeline**
   The readiness score is not a UI-only metric; it is produced server-side from historical data. The README states `predict_readiness.py` uses a **RandomForest** trained on the local CSV, so the flow is: historical placements → model training/inference → readiness percentage returned through the API.

6. **Skill gap analysis pipeline**
   The gap-analysis path compares a student profile against market/job skill data. The README explicitly calls out **Jaccard similarity**, missing skills, and recommended certifications, which means this subsystem is rule/statistics driven rather than purely model driven.

7. **Resume-centric flow**
   The frontend includes a `ResumeUploadView`, and the backend has parser and LLM analyzer services. That suggests a pipeline where a resume is uploaded, parsed into structured skill/experience data, then fed into gap analysis and readiness scoring.

8. **Frontend application structure**
   The React app under `frontend/src/` is organized into feature views rather than a heavy state-management architecture. Components such as `DashboardView`, `GapAnalysisView`, `LearningPathView`, `MockTestView`, `ProfileView`, `ResumeUploadView`, `AdminDashboardView`, and `ManageStudentsView` indicate role-based screens for students and administrators.

9. **Learning and assessment content**
   The frontend bundles static domain content in `frontend/src/data/` and utilities in `frontend/src/utils/`. Files like `mockTestQuestionBank.js`, `questions.js`, `skillData.js`, `questionTemplates.js`, and `resumeTestGenerator.js` imply that mock tests and learning-path generation are driven by local templates and skill metadata, not a remote LMS.

10. **UI-to-backend interaction**
    The frontend likely calls the FastAPI endpoints to populate dashboard tiles, readiness gauges, gap reports, and admin summaries. `App.js` is the top-level composition point, while `Common.js` and the view components provide reusable UI building blocks and page-level sections.

11. **Admin vs student boundary**
    The repository distinguishes student-facing workflows from admin workflows. Student views focus on profile, resume, gap analysis, mock tests, and learning paths; admin views focus on aggregated skill gaps and student management. This separation is important for diagramming user roles and API consumers.

12. **Offline analysis and testing**
    `Exploratory_Data_Analysis.ipynb`, `test_backend.py`, `test_predict.py`, and `backend/test_adzuna.py` show that the repo includes analysis and verification artifacts alongside the product code. That means the architecture has an offline iteration loop for data exploration, model validation, and API/service testing.

13. **External dependency boundary**
    The only clear external-service boundary is the Adzuna client, which likely fetches job-market data when live market enrichment is needed. Everything else is designed to run from local files and local compute, which keeps deployment simple and makes the data flow deterministic.

14. **High-level diagram takeaway**
    A good architecture diagram should show: **frontend React views** → **FastAPI endpoints** → **service layer** → **local data/model files**. Optionally show a side branch for **resume upload/parsing** and another for **job-market data ingestion via Adzuna**.

Main entry points: [`backend/main.py`](https://github.com/07jatin/collage-placement-readiness-and-gap-analysis-testing-1-/blob/main/backend/main.py) (API entrypoint), [`frontend/src/App.js`](https://github.com/07jatin/collage-placement-readiness-and-gap-analysis-testing-1-/blob/main/frontend/src/App.js) (App shell), [`backend/services/skill_analyzer.py`](https://github.com/07jatin/collage-placement-readiness-and-gap-analysis-testing-1-/blob/main/backend/services/skill_analyzer.py) (Skill analyzer), [`backend/services/predict_readiness.py`](https://github.com/07jatin/collage-placement-readiness-and-gap-analysis-testing-1-/blob/main/backend/services/predict_readiness.py) (Readiness model)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Frontend"]
  node_frontend_app["App shell<br/>React entry<br/>[App.js]"]
  node_frontend_dashboard["Dashboard<br/>student view<br/>[DashboardView.js]"]
  node_frontend_gap["Gap analysis<br/>student view<br/>[GapAnalysisView.js]"]
  node_frontend_resume["Resume upload<br/>student view"]
  node_frontend_learning["Learning path<br/>student view"]
  node_frontend_mock["Mock tests<br/>student view<br/>[MockTestView.js]"]
  node_frontend_admin["Admin dashboard<br/>admin view"]
  node_frontend_students["Student mgmt<br/>admin view"]
  node_frontend_profile["Profile<br/>student view<br/>[ProfileView.js]"]
  node_frontend_content["Local content<br/>static data<br/>[skillData.js]"]
end

subgraph group_backend["Backend"]
  node_backend_api["API entrypoint<br/>FastAPI app<br/>[main.py]"]
  node_backend_skill["Skill analyzer<br/>[skill_analyzer.py]"]
  node_backend_readiness["Readiness model"]
  node_backend_resume["Resume parser<br/>[resume_parser.py]"]
  node_backend_llm["LLM resume assist"]
  node_backend_market["Adzuna client<br/>integration<br/>[adzuna_client.py]"]
end

subgraph group_data["Local Data"]
  node_data_students["Student data<br/>json dataset<br/>[student_data.json]"]
  node_data_market["Market data<br/>json dataset<br/>[market_data.json]"]
  node_data_history["Placement history<br/>csv dataset"]
  node_data_tests["Test history<br/>json dataset<br/>[test_history.json]"]
end

subgraph group_offline["Offline Workbench"]
  node_offline_eda["EDA notebook<br/>analysis"]
  node_offline_tests["Backend tests<br/>verification<br/>[test_backend.py]"]
end

node_frontend_app -->|"routes to"| node_frontend_dashboard
node_frontend_app -->|"routes to"| node_frontend_gap
node_frontend_app -->|"routes to"| node_frontend_resume
node_frontend_app -->|"routes to"| node_frontend_learning
node_frontend_app -->|"routes to"| node_frontend_mock
node_frontend_app -->|"routes to"| node_frontend_admin
node_frontend_app -->|"routes to"| node_frontend_students
node_frontend_dashboard -->|"calls"| node_backend_api
node_frontend_gap -->|"calls"| node_backend_api
node_frontend_resume -->|"uploads to"| node_backend_api
node_frontend_admin -->|"calls"| node_backend_api
node_backend_api -->|"uses"| node_backend_skill
node_backend_api -->|"uses"| node_backend_readiness
node_backend_api -->|"uses"| node_backend_resume
node_backend_api -.->|"optional"| node_backend_llm
node_backend_api -->|"uses"| node_backend_market
node_backend_skill -->|"reads"| node_data_students
node_backend_skill -->|"reads"| node_data_market
node_backend_readiness -->|"trains on"| node_data_history
node_backend_readiness -.->|"optionally reads"| node_data_tests
node_backend_resume -.->|"aligns with"| node_frontend_content
node_frontend_mock -->|"uses"| node_frontend_content
node_offline_eda -->|"explores"| node_data_history
node_offline_tests -->|"verifies"| node_backend_api

click node_frontend_app "https://github.com/07jatin/collage-placement-readiness-and-gap-analysis-testing-1-/blob/main/frontend/src/App.js"
click node_frontend_dashboard "https://github.com/07jatin/collage-placement-readiness-and-gap-analysis-testing-1-/blob/main/frontend/src/components/DashboardView.js"
click node_frontend_gap "https://github.com/07jatin/collage-placement-readiness-and-gap-analysis-testing-1-/blob/main/frontend/src/components/GapAnalysisView.js"
click node_frontend_resume "https://github.com/07jatin/collage-placement-readiness-and-gap-analysis-testing-1-/blob/main/frontend/src/components/ResumeUploadView.js"
click node_frontend_learning "https://github.com/07jatin/collage-placement-readiness-and-gap-analysis-testing-1-/blob/main/frontend/src/components/LearningPathView.js"
click node_frontend_mock "https://github.com/07jatin/collage-placement-readiness-and-gap-analysis-testing-1-/blob/main/frontend/src/components/MockTestView.js"
click node_frontend_admin "https://github.com/07jatin/collage-placement-readiness-and-gap-analysis-testing-1-/blob/main/frontend/src/components/AdminDashboardView.js"
click node_frontend_students "https://github.com/07jatin/collage-placement-readiness-and-gap-analysis-testing-1-/blob/main/frontend/src/components/ManageStudentsView.js"
click node_frontend_profile "https://github.com/07jatin/collage-placement-readiness-and-gap-analysis-testing-1-/blob/main/frontend/src/components/ProfileView.js"
click node_frontend_content "https://github.com/07jatin/collage-placement-readiness-and-gap-analysis-testing-1-/blob/main/frontend/src/data/skillData.js"
click node_backend_api "https://github.com/07jatin/collage-placement-readiness-and-gap-analysis-testing-1-/blob/main/backend/main.py"
click node_backend_skill "https://github.com/07jatin/collage-placement-readiness-and-gap-analysis-testing-1-/blob/main/backend/services/skill_analyzer.py"
click node_backend_readiness "https://github.com/07jatin/collage-placement-readiness-and-gap-analysis-testing-1-/blob/main/backend/services/predict_readiness.py"
click node_backend_resume "https://github.com/07jatin/collage-placement-readiness-and-gap-analysis-testing-1-/blob/main/backend/services/resume_parser.py"
click node_backend_llm "https://github.com/07jatin/collage-placement-readiness-and-gap-analysis-testing-1-/blob/main/backend/services/llm_resume_analyzer.py"
click node_backend_market "https://github.com/07jatin/collage-placement-readiness-and-gap-analysis-testing-1-/blob/main/backend/services/adzuna_client.py"
click node_data_students "https://github.com/07jatin/collage-placement-readiness-and-gap-analysis-testing-1-/blob/main/backend/data/student_data.json"
click node_data_market "https://github.com/07jatin/collage-placement-readiness-and-gap-analysis-testing-1-/blob/main/backend/data/market_data.json"
click node_data_history "https://github.com/07jatin/collage-placement-readiness-and-gap-analysis-testing-1-/blob/main/backend/data/historical_placement.csv"
click node_data_tests "https://github.com/07jatin/collage-placement-readiness-and-gap-analysis-testing-1-/blob/main/backend/data/test_history.json"
click node_offline_eda "https://github.com/07jatin/collage-placement-readiness-and-gap-analysis-testing-1-/blob/main/Exploratory_Data_Analysis.ipynb"
click node_offline_tests "https://github.com/07jatin/collage-placement-readiness-and-gap-analysis-testing-1-/blob/main/test_backend.py"

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_frontend_app,node_frontend_dashboard,node_frontend_gap,node_frontend_resume,node_frontend_learning,node_frontend_mock,node_frontend_admin,node_frontend_students,node_frontend_profile,node_frontend_content toneBlue
class node_backend_api,node_backend_skill,node_backend_readiness,node_backend_resume,node_backend_llm,node_backend_market toneAmber
class node_data_students,node_data_market,node_data_history,node_data_tests toneMint
class node_offline_eda,node_offline_tests toneRose
```

## Components

### Frontend

React UI for students and admins

- [App shell](https://github.com/07jatin/collage-placement-readiness-and-gap-analysis-testing-1-/blob/main/frontend/src/App.js): React entry · Top-level UI composition and routing · `frontend/src/App.js`
- [Dashboard](https://github.com/07jatin/collage-placement-readiness-and-gap-analysis-testing-1-/blob/main/frontend/src/components/DashboardView.js): student view · Student summary and readiness tiles · `frontend/src/components/DashboardView.js`
- [Gap analysis](https://github.com/07jatin/collage-placement-readiness-and-gap-analysis-testing-1-/blob/main/frontend/src/components/GapAnalysisView.js): student view · Skill gap and certification recommendations · `frontend/src/components/GapAnalysisView.js`
- [Resume upload](https://github.com/07jatin/collage-placement-readiness-and-gap-analysis-testing-1-/blob/main/frontend/src/components/ResumeUploadView.js): student view · Resume upload and analysis entry point · `frontend/src/components/ResumeUploadView.js`
- [Learning path](https://github.com/07jatin/collage-placement-readiness-and-gap-analysis-testing-1-/blob/main/frontend/src/components/LearningPathView.js): student view · Recommended study and practice path · `frontend/src/components/LearningPathView.js`
- [Mock tests](https://github.com/07jatin/collage-placement-readiness-and-gap-analysis-testing-1-/blob/main/frontend/src/components/MockTestView.js): student view · Practice assessment and test flow · `frontend/src/components/MockTestView.js`
- [Admin dashboard](https://github.com/07jatin/collage-placement-readiness-and-gap-analysis-testing-1-/blob/main/frontend/src/components/AdminDashboardView.js): admin view · Admin summary of skill gaps and students · `frontend/src/components/AdminDashboardView.js`
- [Student mgmt](https://github.com/07jatin/collage-placement-readiness-and-gap-analysis-testing-1-/blob/main/frontend/src/components/ManageStudentsView.js): admin view · Student administration and oversight · `frontend/src/components/ManageStudentsView.js`
- [Profile](https://github.com/07jatin/collage-placement-readiness-and-gap-analysis-testing-1-/blob/main/frontend/src/components/ProfileView.js): student view · Student profile and baseline data · `frontend/src/components/ProfileView.js`
- [Local content](https://github.com/07jatin/collage-placement-readiness-and-gap-analysis-testing-1-/blob/main/frontend/src/data/skillData.js): static data · Question banks, skill metadata, and generators · `frontend/src/data/skillData.js`

### Backend

FastAPI app plus service layer

- [API entrypoint](https://github.com/07jatin/collage-placement-readiness-and-gap-analysis-testing-1-/blob/main/backend/main.py): FastAPI app · Main HTTP boundary for reports and predictions · `backend/main.py`
- [Skill analyzer](https://github.com/07jatin/collage-placement-readiness-and-gap-analysis-testing-1-/blob/main/backend/services/skill_analyzer.py): service · Computes overlaps, gaps, and certification suggestions · `backend/services/skill_analyzer.py`
- [Readiness model](https://github.com/07jatin/collage-placement-readiness-and-gap-analysis-testing-1-/blob/main/backend/services/predict_readiness.py): service · Trains and applies readiness prediction from placements · `backend/services/predict_readiness.py`
- [Resume parser](https://github.com/07jatin/collage-placement-readiness-and-gap-analysis-testing-1-/blob/main/backend/services/resume_parser.py): service · Extracts structured signals from uploaded resumes · `backend/services/resume_parser.py`
- [LLM resume assist](https://github.com/07jatin/collage-placement-readiness-and-gap-analysis-testing-1-/blob/main/backend/services/llm_resume_analyzer.py): service · Optional AI-assisted resume analysis path · `backend/services/llm_resume_analyzer.py`
- [Adzuna client](https://github.com/07jatin/collage-placement-readiness-and-gap-analysis-testing-1-/blob/main/backend/services/adzuna_client.py): integration · External job-market ingestion boundary · `backend/services/adzuna_client.py`

### Local Data

Repository-managed inputs and model artifacts

- [Student data](https://github.com/07jatin/collage-placement-readiness-and-gap-analysis-testing-1-/blob/main/backend/data/student_data.json): json dataset · Local student profiles and attributes · `backend/data/student_data.json`
- [Market data](https://github.com/07jatin/collage-placement-readiness-and-gap-analysis-testing-1-/blob/main/backend/data/market_data.json): json dataset · Local job-skill market snapshot · `backend/data/market_data.json`
- [Placement history](https://github.com/07jatin/collage-placement-readiness-and-gap-analysis-testing-1-/blob/main/backend/data/historical_placement.csv): csv dataset · Historical placements used for model training · `backend/data/historical_placement.csv`
- [Test history](https://github.com/07jatin/collage-placement-readiness-and-gap-analysis-testing-1-/blob/main/backend/data/test_history.json): json dataset · Historical mock-test or assessment outcomes · `backend/data/test_history.json`

### Offline Workbench

Analysis and test artifacts

- [EDA notebook](https://github.com/07jatin/collage-placement-readiness-and-gap-analysis-testing-1-/blob/main/Exploratory_Data_Analysis.ipynb): analysis · Exploratory data analysis and iteration loop · `Exploratory_Data_Analysis.ipynb`
- [Backend tests](https://github.com/07jatin/collage-placement-readiness-and-gap-analysis-testing-1-/blob/main/test_backend.py): verification · API and model checks for backend behavior · `test_backend.py`

## Connections

- App shell → Dashboard: routes to · App composes student dashboard screen
- App shell → Gap analysis: routes to · App composes skill-gap screen
- App shell → Resume upload: routes to · App composes resume upload flow
- App shell → Learning path: routes to · App composes learning-path screen
- App shell → Mock tests: routes to · App composes mock-test screen
- App shell → Admin dashboard: routes to · App composes admin dashboard
- App shell → Student mgmt: routes to · App composes student-management screen
- Dashboard → API entrypoint: calls · Fetches readiness and gap reports
- Gap analysis → API entrypoint: calls · Requests gap analysis data
- Resume upload → API entrypoint: uploads to · Sends resume for parsing and analysis
- Admin dashboard → API entrypoint: calls · Requests admin skill-gap summaries
- API entrypoint → Skill analyzer: uses · Assembles gap reports from skill analysis
- API entrypoint → Readiness model: uses · Serves readiness predictions
- API entrypoint → Resume parser: uses · Parses uploaded resumes
- API entrypoint → LLM resume assist: optional · AI-assisted resume analysis path
- API entrypoint → Adzuna client: uses · Enriches market skill signals when needed
- Skill analyzer → Student data: reads · Uses student profile inputs
- Skill analyzer → Market data: reads · Compares against local market skills
- Readiness model → Placement history: trains on · RandomForest fits historical placement data
- Readiness model → Test history: optionally reads · Can incorporate test-history signals
- Resume parser → Local content: aligns with · Uses resume and skill templates indirectly
- Mock tests → Local content: uses · Builds practice tests from local question data
- EDA notebook → Placement history: explores · Data analysis over placement history
- Backend tests → API entrypoint: verifies · Checks API behavior and predictions
