# bashanta-pokharel/communityvolinture architecture

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

- Interactive diagram: https://gitdiagram.com/bashanta-pokharel/communityvolinture
- Repository: https://github.com/bashanta-pokharel/communityvolinture

## Overview

Community Volunteer System is a Flask app for volunteers, organizations, and administrators. Volunteers register and maintain profiles, discover tasks, apply, and track application outcomes; organizations publish tasks and manage applications; administrators manage the system. Flask routes coordinate these workflows and persist data in MySQL. Matching combines skill similarity, availability, and education qualification. Evidence is limited to the README and sampled files, so unsampled route-level relationships are not expanded.

Main entry points: [`app.py`](https://github.com/bashanta-pokharel/communityvolinture/blob/main/app.py) (Flask routes), [`database.py`](https://github.com/bashanta-pokharel/communityvolinture/blob/main/database.py) (Query and initialization), [`services/education.py`](https://github.com/bashanta-pokharel/communityvolinture/blob/main/services/education.py) (Match qualification), [`helpers.py`](https://github.com/bashanta-pokharel/communityvolinture/blob/main/helpers.py) (Auth and utilities)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web workflows"]
  node_routes["Flask routes<br/>[app.py]"]
  node_volunteer_profiles["Volunteer profiles<br/>[app.py]"]
  node_task_publishing["Task publishing<br/>[app.py]"]
  node_task_discovery["Task discovery<br/>[app.py]"]
  node_applications["Applications and reviews<br/>[app.py]"]
  node_notifications["Notifications<br/>[app.py]"]
  node_admin_management["Admin management<br/>[app.py]"]
end

subgraph group_domain["Matching services"]
  node_helpers["Auth and utilities<br/>[helpers.py]"]
  node_match_details["Match qualification<br/>[education.py]"]
  node_jaccard["Jaccard similarity<br/>[matching.py]"]
end

subgraph group_persistence["Data persistence"]
  node_database_access["Query and initialization<br/>[database.py]"]
  node_mysql[("MySQL")]
end

subgraph group_client["Browser interface"]
  node_browser["Browser interface<br/>[script.js]"]
  node_templates["Page templates"]
end

node_volunteer(("Volunteer"))
node_organization(("Organization"))
node_admin(("Administrator"))

node_volunteer -->|"uses"| node_routes
node_organization -->|"uses"| node_routes
node_admin -->|"uses"| node_routes
node_routes -->|"queries"| node_database_access
node_helpers -->|"queries"| node_database_access
node_helpers -->|"uses"| node_match_details
node_match_details -->|"reads catalogs"| node_database_access
node_match_details -->|"scores similarity"| node_jaccard
node_database_access -->|"connects"| node_mysql
node_browser -->|"requests catalogs"| node_routes
node_volunteer -->|"maintains"| node_volunteer_profiles
node_organization -->|"posts tasks"| node_task_publishing
node_volunteer -->|"browses"| node_task_discovery
node_volunteer -->|"applies"| node_applications
node_organization -->|"reviews"| node_applications
node_admin -->|"manages"| node_admin_management
node_browser -.->|"views pages"| node_templates

click node_routes "https://github.com/bashanta-pokharel/communityvolinture/blob/main/app.py"
click node_volunteer_profiles "https://github.com/bashanta-pokharel/communityvolinture/blob/main/app.py"
click node_task_publishing "https://github.com/bashanta-pokharel/communityvolinture/blob/main/app.py"
click node_task_discovery "https://github.com/bashanta-pokharel/communityvolinture/blob/main/app.py"
click node_applications "https://github.com/bashanta-pokharel/communityvolinture/blob/main/app.py"
click node_notifications "https://github.com/bashanta-pokharel/communityvolinture/blob/main/app.py"
click node_admin_management "https://github.com/bashanta-pokharel/communityvolinture/blob/main/app.py"
click node_helpers "https://github.com/bashanta-pokharel/communityvolinture/blob/main/helpers.py"
click node_match_details "https://github.com/bashanta-pokharel/communityvolinture/blob/main/services/education.py"
click node_jaccard "https://github.com/bashanta-pokharel/communityvolinture/blob/main/services/matching.py"
click node_database_access "https://github.com/bashanta-pokharel/communityvolinture/blob/main/database.py"
click node_browser "https://github.com/bashanta-pokharel/communityvolinture/blob/main/static/js/script.js"
click node_templates "https://github.com/bashanta-pokharel/communityvolinture/tree/main/templates"

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_routes,node_volunteer_profiles,node_task_publishing,node_task_discovery,node_applications,node_notifications,node_admin_management toneBlue
class node_helpers,node_match_details,node_jaccard toneAmber
class node_database_access,node_mysql toneMint
class node_browser,node_templates toneRose
class node_volunteer,node_organization,node_admin toneIndigo
```

## Components

### Web workflows

- [Flask routes](https://github.com/bashanta-pokharel/communityvolinture/blob/main/app.py): `app.py`
- [Volunteer profiles](https://github.com/bashanta-pokharel/communityvolinture/blob/main/app.py): `app.py`
- [Task publishing](https://github.com/bashanta-pokharel/communityvolinture/blob/main/app.py): `app.py`
- [Task discovery](https://github.com/bashanta-pokharel/communityvolinture/blob/main/app.py): `app.py`
- [Applications and reviews](https://github.com/bashanta-pokharel/communityvolinture/blob/main/app.py): `app.py`
- [Notifications](https://github.com/bashanta-pokharel/communityvolinture/blob/main/app.py): `app.py`
- [Admin management](https://github.com/bashanta-pokharel/communityvolinture/blob/main/app.py): `app.py`

### Matching services

- [Auth and utilities](https://github.com/bashanta-pokharel/communityvolinture/blob/main/helpers.py): `helpers.py`
- [Match qualification](https://github.com/bashanta-pokharel/communityvolinture/blob/main/services/education.py): `services/education.py`
- [Jaccard similarity](https://github.com/bashanta-pokharel/communityvolinture/blob/main/services/matching.py): `services/matching.py`

### Data persistence

- [Query and initialization](https://github.com/bashanta-pokharel/communityvolinture/blob/main/database.py): `database.py`
- **MySQL**

### Browser interface

- [Browser interface](https://github.com/bashanta-pokharel/communityvolinture/blob/main/static/js/script.js): `static/js/script.js`
- [Page templates](https://github.com/bashanta-pokharel/communityvolinture/tree/main/templates): `templates`

### Other components

- **Volunteer**
- **Organization**
- **Administrator**

## Connections

- Volunteer → Flask routes: uses (evidence: `README.md`)
- Organization → Flask routes: uses (evidence: `README.md`)
- Administrator → Flask routes: uses (evidence: `README.md`)
- Flask routes → Query and initialization: queries (evidence: `app.py`)
- Auth and utilities → Query and initialization: queries (evidence: `helpers.py`)
- Auth and utilities → Match qualification: uses (evidence: `helpers.py`)
- Match qualification → Query and initialization: reads catalogs (evidence: `services/education.py`)
- Match qualification → Jaccard similarity: scores similarity (evidence: `services/education.py`)
- Query and initialization → MySQL: connects (evidence: `database.py`)
- Browser interface → Flask routes: requests catalogs (evidence: `static/js/script.js`)
- Volunteer → Volunteer profiles: maintains (evidence: `README.md`)
- Organization → Task publishing: posts tasks (evidence: `README.md`)
- Volunteer → Task discovery: browses (evidence: `README.md`)
- Volunteer → Applications and reviews: applies (evidence: `README.md`)
- Organization → Applications and reviews: reviews (evidence: `README.md`)
- Administrator → Admin management: manages (evidence: `README.md`)
- Browser interface → Page templates: views pages
