# maxyu68/comp4878-fyp-25223895 architecture

> Architecture diagram of the GitHub repository maxyu68/comp4878-fyp-25223895, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/maxyu68/comp4878-fyp-25223895
- Repository: https://github.com/maxyu68/comp4878-fyp-25223895

## Overview

This is an AI-driven career-development platform. Its implemented workflow accepts a resume and job ID through Flask, retrieves the job requirements from MySQL, extracts and normalizes skills, and returns semantic matches and gaps. A separate Scrapy project gathers JobsDB postings. The README also describes project-based learning recommendations via GitHub, but that integration and the planned Flutter client have no implementation in the supplied tree. The graph reflects the inspected backend calls and README-documented capabilities; scraper internals and recommendation wiring were not sampled.

Main entry points: [`backend/pipeline.py`](https://github.com/maxyu68/comp4878-fyp-25223895/blob/main/backend/pipeline.py) (Matching workflow), [`backend/app.py`](https://github.com/maxyu68/comp4878-fyp-25223895/blob/main/backend/app.py) (Flask endpoints), [`scrapers/job_scraper/job_scraper/spiders/jobsdb_spider.py`](https://github.com/maxyu68/comp4878-fyp-25223895/blob/main/scrapers/job_scraper/job_scraper/spiders/jobsdb_spider.py) (JobsDB crawler), [`scrapers/job_scraper/job_scraper/pipelines.py`](https://github.com/maxyu68/comp4878-fyp-25223895/blob/main/scrapers/job_scraper/job_scraper/pipelines.py) (Scraper persistence)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_api["Job API"]
  node_flask["Flask endpoints<br/>[app.py]"]
  node_mysql[("MySQL job store")]
end

subgraph group_analysis["Skill Analysis"]
  node_pipeline["Matching workflow<br/>[pipeline.py]"]
  node_ner["Skill extraction<br/>[ner_service.py]"]
  node_normalize["Skill normalization<br/>[dict_service.py]"]
  node_sbert["Semantic matching<br/>[sbert_service.py]"]
end

subgraph group_ingest["Job Ingestion"]
  node_spider["JobsDB crawler<br/>[jobsdb_spider.py]"]
  node_scrapy_pipeline["Scraper persistence<br/>[pipelines.py]"]
end

subgraph group_learning["Learning Recommendations"]
  node_recommendations["Project recommendations"]
end

node_jobseeker(("Job seeker"))
node_jobsdb["JobsDB"]
node_github["GitHub REST API"]

node_jobseeker -->|"submits match"| node_flask
node_flask -->|"reads jobs"| node_mysql
node_flask -->|"runs analysis"| node_pipeline
node_pipeline -->|"extracts skills"| node_ner
node_pipeline -->|"normalizes skills"| node_normalize
node_pipeline -->|"matches skills"| node_sbert
node_jobsdb -->|"provides postings"| node_spider
node_spider -.->|"persists postings"| node_scrapy_pipeline
node_scrapy_pipeline -->|"stores postings"| node_mysql
node_recommendations -.->|"queries projects"| node_github

click node_flask "https://github.com/maxyu68/comp4878-fyp-25223895/blob/main/backend/app.py"
click node_pipeline "https://github.com/maxyu68/comp4878-fyp-25223895/blob/main/backend/pipeline.py"
click node_ner "https://github.com/maxyu68/comp4878-fyp-25223895/blob/main/backend/ner_service.py"
click node_normalize "https://github.com/maxyu68/comp4878-fyp-25223895/blob/main/backend/dict_service.py"
click node_sbert "https://github.com/maxyu68/comp4878-fyp-25223895/blob/main/backend/sbert_service.py"
click node_spider "https://github.com/maxyu68/comp4878-fyp-25223895/blob/main/scrapers/job_scraper/job_scraper/spiders/jobsdb_spider.py"
click node_scrapy_pipeline "https://github.com/maxyu68/comp4878-fyp-25223895/blob/main/scrapers/job_scraper/job_scraper/pipelines.py"
click node_recommendations "https://github.com/maxyu68/comp4878-fyp-25223895/tree/main/backend"

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_flask,node_mysql toneBlue
class node_pipeline,node_ner,node_normalize,node_sbert toneAmber
class node_spider,node_scrapy_pipeline,node_github toneMint
class node_recommendations toneRose
class node_jobseeker,node_jobsdb toneIndigo
```

## Components

### Job API

- [Flask endpoints](https://github.com/maxyu68/comp4878-fyp-25223895/blob/main/backend/app.py): `backend/app.py`
- **MySQL job store**

### Skill Analysis

- [Matching workflow](https://github.com/maxyu68/comp4878-fyp-25223895/blob/main/backend/pipeline.py): `backend/pipeline.py`
- [Skill extraction](https://github.com/maxyu68/comp4878-fyp-25223895/blob/main/backend/ner_service.py): `backend/ner_service.py`
- [Skill normalization](https://github.com/maxyu68/comp4878-fyp-25223895/blob/main/backend/dict_service.py): `backend/dict_service.py`
- [Semantic matching](https://github.com/maxyu68/comp4878-fyp-25223895/blob/main/backend/sbert_service.py): `backend/sbert_service.py`

### Job Ingestion

- [JobsDB crawler](https://github.com/maxyu68/comp4878-fyp-25223895/blob/main/scrapers/job_scraper/job_scraper/spiders/jobsdb_spider.py): `scrapers/job_scraper/job_scraper/spiders/jobsdb_spider.py`
- [Scraper persistence](https://github.com/maxyu68/comp4878-fyp-25223895/blob/main/scrapers/job_scraper/job_scraper/pipelines.py): `scrapers/job_scraper/job_scraper/pipelines.py`

### Learning Recommendations

- [Project recommendations](https://github.com/maxyu68/comp4878-fyp-25223895/tree/main/backend): `backend`

### Other components

- **Job seeker**
- **JobsDB**
- **GitHub REST API**

## Connections

- Job seeker → Flask endpoints: submits match (evidence: `backend/app.py`)
- Flask endpoints → MySQL job store: reads jobs (evidence: `backend/app.py`)
- Flask endpoints → Matching workflow: runs analysis (evidence: `backend/app.py`)
- Matching workflow → Skill extraction: extracts skills (evidence: `backend/pipeline.py`)
- Matching workflow → Skill normalization: normalizes skills (evidence: `backend/pipeline.py`)
- Matching workflow → Semantic matching: matches skills (evidence: `backend/pipeline.py`)
- JobsDB → JobsDB crawler: provides postings (evidence: `README.md`)
- JobsDB crawler → Scraper persistence: persists postings
- Scraper persistence → MySQL job store: stores postings (evidence: `README.md`)
- Project recommendations → GitHub REST API: queries projects
