# atul676/higher-studies-and-scholarship-opportunity-finder architecture

> Architecture diagram of the GitHub repository atul676/higher-studies-and-scholarship-opportunity-finder, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/atul676/higher-studies-and-scholarship-opportunity-finder
- Repository: https://github.com/atul676/higher-studies-and-scholarship-opportunity-finder

## Overview

StudyFinder is a Flask application for postgraduate opportunity discovery, with separate account/profile and application-management features. A student searches and filters listings, reviews details or explores destinations, then can register, save opportunities, track progress, and manage documents. The graph distinguishes discovery, identity, and application/document stages, with SQLite as the shared persistence layer. Source excerpts show key route and storage behavior; some UI-to-server wiring and unsampled features are represented only where the README documents them.

Main entry points: [`app.py`](https://github.com/atul676/higher-studies-and-scholarship-opportunity-finder/blob/main/app.py) (Search and listings), [`database.py`](https://github.com/atul676/higher-studies-and-scholarship-opportunity-finder/blob/main/database.py) (SQLite database), [`static/map.js`](https://github.com/atul676/higher-studies-and-scholarship-opportunity-finder/blob/main/static/map.js) (Destination map), [`static/globe.js`](https://github.com/atul676/higher-studies-and-scholarship-opportunity-finder/blob/main/static/globe.js) (Destination globe)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_discovery["Opportunity discovery"]
  node_discovery_routes["Search and listings<br/>[app.py]"]
  node_destination_map["Destination map<br/>[map.js]"]
  node_destination_globe["Destination globe<br/>[globe.js]"]
  node_discovery_interactions["Search interactions<br/>[app.js]"]
end

subgraph group_identity["Accounts and profiles"]
  node_auth_profile["Login and profile<br/>[auth.py]"]
end

subgraph group_tracking["Applications and documents"]
  node_application_tracking["Saved applications<br/>[applications.py]"]
  node_document_library["Document library<br/>[applications.py]"]
  node_upload_files[("Uploaded files")]
end

subgraph group_persistence["Data and persistence"]
  node_catalogue_csv["Opportunity catalogue<br/>[opportunities.csv]"]
  node_database[("SQLite database<br/>[database.py]")]
  node_catalogue_loader["Catalogue loader<br/>[seed.py]"]
end

node_student(("Student"))
node_world_atlas["World map data"]
node_wikipedia["Wikipedia photos"]
node_website_preview["Website previews"]

node_student -->|"searches listings"| node_discovery_routes
node_student -->|"explores destinations"| node_destination_map
node_student -->|"explores destinations"| node_destination_globe
node_discovery_routes -->|"queries listings"| node_database
node_destination_map -->|"opens search"| node_discovery_routes
node_destination_globe -->|"opens search"| node_discovery_routes
node_student -->|"manages account"| node_auth_profile
node_auth_profile -->|"reads and writes"| node_database
node_discovery_routes -->|"registers blueprint"| node_auth_profile
node_student -->|"tracks opportunities"| node_application_tracking
node_application_tracking -->|"reads and writes"| node_database
node_student -->|"manages documents"| node_document_library
node_document_library -->|"stores metadata"| node_database
node_document_library -->|"stores files"| node_upload_files
node_discovery_routes -->|"registers blueprint"| node_application_tracking
node_catalogue_loader -->|"loads catalogue"| node_catalogue_csv
node_catalogue_loader -->|"populates listings"| node_database
node_destination_map -->|"loads geography"| node_world_atlas
node_destination_globe -->|"loads geography"| node_world_atlas
node_discovery_interactions -->|"loads photos"| node_wikipedia
node_discovery_interactions -->|"requests previews"| node_website_preview

click node_discovery_routes "https://github.com/atul676/higher-studies-and-scholarship-opportunity-finder/blob/main/app.py"
click node_destination_map "https://github.com/atul676/higher-studies-and-scholarship-opportunity-finder/blob/main/static/map.js"
click node_destination_globe "https://github.com/atul676/higher-studies-and-scholarship-opportunity-finder/blob/main/static/globe.js"
click node_discovery_interactions "https://github.com/atul676/higher-studies-and-scholarship-opportunity-finder/blob/main/static/app.js"
click node_auth_profile "https://github.com/atul676/higher-studies-and-scholarship-opportunity-finder/blob/main/auth.py"
click node_application_tracking "https://github.com/atul676/higher-studies-and-scholarship-opportunity-finder/blob/main/applications.py"
click node_document_library "https://github.com/atul676/higher-studies-and-scholarship-opportunity-finder/blob/main/applications.py"
click node_upload_files "https://github.com/atul676/higher-studies-and-scholarship-opportunity-finder/tree/main/uploads"
click node_catalogue_csv "https://github.com/atul676/higher-studies-and-scholarship-opportunity-finder/blob/main/data/opportunities.csv"
click node_database "https://github.com/atul676/higher-studies-and-scholarship-opportunity-finder/blob/main/database.py"
click node_catalogue_loader "https://github.com/atul676/higher-studies-and-scholarship-opportunity-finder/blob/main/seed.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_discovery_routes,node_destination_map,node_destination_globe,node_discovery_interactions,node_website_preview toneBlue
class node_auth_profile toneAmber
class node_application_tracking,node_document_library,node_upload_files toneMint
class node_catalogue_csv,node_database,node_catalogue_loader toneRose
class node_student,node_world_atlas,node_wikipedia toneIndigo
```

## Components

### Opportunity discovery

- [Search and listings](https://github.com/atul676/higher-studies-and-scholarship-opportunity-finder/blob/main/app.py): `app.py`
- [Destination map](https://github.com/atul676/higher-studies-and-scholarship-opportunity-finder/blob/main/static/map.js): `static/map.js`
- [Destination globe](https://github.com/atul676/higher-studies-and-scholarship-opportunity-finder/blob/main/static/globe.js): `static/globe.js`
- [Search interactions](https://github.com/atul676/higher-studies-and-scholarship-opportunity-finder/blob/main/static/app.js): `static/app.js`

### Accounts and profiles

- [Login and profile](https://github.com/atul676/higher-studies-and-scholarship-opportunity-finder/blob/main/auth.py): `auth.py`

### Applications and documents

- [Saved applications](https://github.com/atul676/higher-studies-and-scholarship-opportunity-finder/blob/main/applications.py): `applications.py`
- [Document library](https://github.com/atul676/higher-studies-and-scholarship-opportunity-finder/blob/main/applications.py): `applications.py`
- [Uploaded files](https://github.com/atul676/higher-studies-and-scholarship-opportunity-finder/tree/main/uploads): `uploads`

### Data and persistence

- [Opportunity catalogue](https://github.com/atul676/higher-studies-and-scholarship-opportunity-finder/blob/main/data/opportunities.csv): `data/opportunities.csv`
- [SQLite database](https://github.com/atul676/higher-studies-and-scholarship-opportunity-finder/blob/main/database.py): `database.py`
- [Catalogue loader](https://github.com/atul676/higher-studies-and-scholarship-opportunity-finder/blob/main/seed.py): `seed.py`

### Other components

- **Student**
- **World map data**
- **Wikipedia photos**
- **Website previews**

## Connections

- Student → Search and listings: searches listings (evidence: `README.md`)
- Student → Destination map: explores destinations (evidence: `README.md`)
- Student → Destination globe: explores destinations (evidence: `README.md`)
- Search and listings → SQLite database: queries listings (evidence: `app.py`)
- Destination map → Search and listings: opens search (evidence: `static/map.js`)
- Destination globe → Search and listings: opens search (evidence: `static/globe.js`)
- Student → Login and profile: manages account (evidence: `README.md`)
- Login and profile → SQLite database: reads and writes (evidence: `auth.py`)
- Search and listings → Login and profile: registers blueprint (evidence: `app.py`)
- Student → Saved applications: tracks opportunities (evidence: `README.md`)
- Saved applications → SQLite database: reads and writes (evidence: `applications.py`)
- Student → Document library: manages documents (evidence: `README.md`)
- Document library → SQLite database: stores metadata (evidence: `applications.py`)
- Document library → Uploaded files: stores files (evidence: `applications.py`)
- Search and listings → Saved applications: registers blueprint (evidence: `app.py`)
- Catalogue loader → Opportunity catalogue: loads catalogue (evidence: `seed.py`)
- Catalogue loader → SQLite database: populates listings (evidence: `seed.py`)
- Destination map → World map data: loads geography (evidence: `static/map.js`)
- Destination globe → World map data: loads geography (evidence: `static/globe.js`)
- Search interactions → Wikipedia photos: loads photos (evidence: `static/app.js`)
- Search interactions → Website previews: requests previews (evidence: `static/app.js`)
