# ran-nope/internship-tracker architecture

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

- Interactive diagram: https://gitdiagram.com/ran-nope/internship-tracker
- Repository: https://github.com/ran-nope/internship-tracker

## Overview

This is an internship-tracking web app: users sign in, then record and manage applications, search/filter them, and review status statistics. The React interface communicates with a FastAPI service, which authenticates users and performs user-scoped internship operations against PostgreSQL through SQLAlchemy models and sessions. Frontend request excerpts establish internship API calls; backend route and persistence relationships are visible in main.py. Authentication is documented by backend handlers and frontend UI, but the excerpt does not show its frontend request wiring.

Main entry points: [`main.py`](https://github.com/ran-nope/internship-tracker/blob/master/main.py) (FastAPI routes), [`frontend/src/App.jsx`](https://github.com/ran-nope/internship-tracker/blob/master/frontend/src/App.jsx) (Application dashboard), [`models.py`](https://github.com/ran-nope/internship-tracker/blob/master/models.py) (SQLAlchemy entities), [`database.py`](https://github.com/ran-nope/internship-tracker/blob/master/database.py) (Database sessions)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Web client"]
  node_authui["Sign-in UI<br/>[App.jsx]"]
  node_trackerui["Application dashboard<br/>[App.jsx]"]
end

subgraph group_service["Application service"]
  node_api["FastAPI routes<br/>[main.py]"]
  node_auth["Account and tokens<br/>[main.py]"]
  node_internship_ops["Internship operations<br/>[main.py]"]
end

subgraph group_persistence["Persistence"]
  node_models["SQLAlchemy entities<br/>[models.py]"]
  node_database["Database sessions<br/>[database.py]"]
  node_postgres[("PostgreSQL")]
end

node_user(("User"))

node_user -->|"signs in"| node_authui
node_user -->|"manages applications"| node_trackerui
node_trackerui -->|"requests internships"| node_api
node_api -->|"returns records"| node_trackerui
node_authui -.->|"authenticates"| node_auth
node_api -->|"routes account actions"| node_auth
node_api -->|"routes application actions"| node_internship_ops
node_auth -->|"queries users"| node_models
node_internship_ops -->|"queries applications"| node_models
node_api -->|"creates sessions"| node_database
node_models -->|"uses declarative base"| node_database
node_database -->|"connects to"| node_postgres

click node_authui "https://github.com/ran-nope/internship-tracker/blob/master/frontend/src/App.jsx"
click node_trackerui "https://github.com/ran-nope/internship-tracker/blob/master/frontend/src/App.jsx"
click node_api "https://github.com/ran-nope/internship-tracker/blob/master/main.py"
click node_auth "https://github.com/ran-nope/internship-tracker/blob/master/main.py"
click node_internship_ops "https://github.com/ran-nope/internship-tracker/blob/master/main.py"
click node_models "https://github.com/ran-nope/internship-tracker/blob/master/models.py"
click node_database "https://github.com/ran-nope/internship-tracker/blob/master/database.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_authui,node_trackerui,node_user toneBlue
class node_api,node_auth,node_internship_ops toneAmber
class node_models,node_database,node_postgres toneMint
```

## Components

### Web client

- [Sign-in UI](https://github.com/ran-nope/internship-tracker/blob/master/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Application dashboard](https://github.com/ran-nope/internship-tracker/blob/master/frontend/src/App.jsx): `frontend/src/App.jsx`

### Application service

- [FastAPI routes](https://github.com/ran-nope/internship-tracker/blob/master/main.py): `main.py`
- [Account and tokens](https://github.com/ran-nope/internship-tracker/blob/master/main.py): `main.py`
- [Internship operations](https://github.com/ran-nope/internship-tracker/blob/master/main.py): `main.py`

### Persistence

- [SQLAlchemy entities](https://github.com/ran-nope/internship-tracker/blob/master/models.py): `models.py`
- [Database sessions](https://github.com/ran-nope/internship-tracker/blob/master/database.py): `database.py`
- **PostgreSQL**

### Other components

- **User**

## Connections

- User → Sign-in UI: signs in (evidence: `frontend/src/App.jsx`)
- User → Application dashboard: manages applications (evidence: `frontend/src/App.jsx`)
- Application dashboard → FastAPI routes: requests internships (evidence: `frontend/src/App.jsx`)
- FastAPI routes → Application dashboard: returns records (evidence: `frontend/src/App.jsx`)
- Sign-in UI → Account and tokens: authenticates
- FastAPI routes → Account and tokens: routes account actions (evidence: `main.py`)
- FastAPI routes → Internship operations: routes application actions (evidence: `main.py`)
- Account and tokens → SQLAlchemy entities: queries users (evidence: `main.py`)
- Internship operations → SQLAlchemy entities: queries applications (evidence: `main.py`)
- FastAPI routes → Database sessions: creates sessions (evidence: `main.py`)
- SQLAlchemy entities → Database sessions: uses declarative base (evidence: `models.py`)
- Database sessions → PostgreSQL: connects to (evidence: `database.py`)
