# karthikyannabathina/startupmeu-intern-tracker architecture

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

- Interactive diagram: https://gitdiagram.com/karthikyannabathina/startupmeu-intern-tracker
- Repository: https://github.com/karthikyannabathina/startupmeu-intern-tracker

## Overview

InternTrack tracks internship applications through a seven-status workflow. A user adds or edits an opportunity in the form, while the dashboard supports search, status filtering, deletion, and live summary statistics. The React hooks manage form and list state and call the REST client; Express routes dispatch to controllers that validate and query the Mongoose model. The README documents the MongoDB-backed API and the broader product capabilities. Relationships among sampled modules are evidenced by excerpts or the source index; client-to-server and database connections follow the documented REST and MongoDB setup.

Main entry points: [`client/src/App.jsx`](https://github.com/karthikyannabathina/startupmeu-intern-tracker/blob/main/client/src/App.jsx) (App composition), [`client/src/components/Dashboard.jsx`](https://github.com/karthikyannabathina/startupmeu-intern-tracker/blob/main/client/src/components/Dashboard.jsx) (Dashboard), [`server/server.js`](https://github.com/karthikyannabathina/startupmeu-intern-tracker/blob/main/server/server.js) (Express server), [`client/src/hooks/useApplicationForm.js`](https://github.com/karthikyannabathina/startupmeu-intern-tracker/blob/main/client/src/hooks/useApplicationForm.js) (Form state)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client_ui["Dashboard UI"]
  node_app["App composition<br/>[App.jsx]"]
  node_header["Header actions<br/>[Header.jsx]"]
  node_dashboard["Dashboard<br/>[Dashboard.jsx]"]
  node_stats["Stats cards<br/>[StatsCards.jsx]"]
  node_filters["Application filters"]
  node_list["Application list"]
  node_form["Application form"]
  node_bottom_nav["Bottom navigation"]
end

subgraph group_client_state["Client State"]
  node_statuses["Status choices<br/>[statuses.js]"]
  node_applications_hook["Applications state<br/>[useApplications.js]"]
  node_form_hook["Form state"]
  node_service["REST client"]
end

subgraph group_server_api["API Layer"]
  node_routes["Application routes"]
  node_controller["Application operations"]
  node_responses["Response envelope<br/>[apiResponse.js]"]
  node_errors["Error middleware<br/>[errorHandler.js]"]
  node_server["Express server<br/>[server.js]"]
end

subgraph group_persistence["Persistence"]
  node_model["Application schema<br/>[Application.js]"]
  node_db_config["Database connection<br/>[db.js]"]
end

node_user(("Internship tracker user"))
node_mongodb[("MongoDB")]

node_user -->|"uses"| node_app
node_app -->|"renders"| node_header
node_app -->|"renders"| node_dashboard
node_app -->|"renders"| node_form
node_app -->|"renders"| node_bottom_nav
node_app -->|"initializes"| node_applications_hook
node_app -->|"initializes"| node_form_hook
node_dashboard -->|"renders"| node_stats
node_dashboard -->|"renders"| node_filters
node_dashboard -->|"renders"| node_list
node_form -->|"uses choices"| node_statuses
node_filters -->|"uses choices"| node_statuses
node_applications_hook -->|"fetches and deletes"| node_service
node_form_hook -->|"creates and updates"| node_service
node_header -->|"opens form"| node_form_hook
node_list -->|"edits record"| node_form_hook
node_list -->|"deletes record"| node_applications_hook
node_service -->|"calls REST API"| node_server
node_server -->|"mounts routes"| node_routes
node_routes -->|"dispatches"| node_controller
node_server -->|"connects database"| node_db_config
node_server -->|"registers middleware"| node_errors
node_controller -->|"queries and aggregates"| node_model
node_controller -->|"sends envelopes"| node_responses
node_db_config -->|"connects"| node_mongodb
node_model -->|"stores records"| node_mongodb

click node_app "https://github.com/karthikyannabathina/startupmeu-intern-tracker/blob/main/client/src/App.jsx"
click node_header "https://github.com/karthikyannabathina/startupmeu-intern-tracker/blob/main/client/src/components/Header.jsx"
click node_dashboard "https://github.com/karthikyannabathina/startupmeu-intern-tracker/blob/main/client/src/components/Dashboard.jsx"
click node_stats "https://github.com/karthikyannabathina/startupmeu-intern-tracker/blob/main/client/src/components/StatsCards.jsx"
click node_filters "https://github.com/karthikyannabathina/startupmeu-intern-tracker/blob/main/client/src/components/ApplicationFilters.jsx"
click node_list "https://github.com/karthikyannabathina/startupmeu-intern-tracker/blob/main/client/src/components/ApplicationList.jsx"
click node_form "https://github.com/karthikyannabathina/startupmeu-intern-tracker/blob/main/client/src/components/ApplicationForm.jsx"
click node_bottom_nav "https://github.com/karthikyannabathina/startupmeu-intern-tracker/blob/main/client/src/components/BottomNavigation.jsx"
click node_statuses "https://github.com/karthikyannabathina/startupmeu-intern-tracker/blob/main/client/src/constants/statuses.js"
click node_applications_hook "https://github.com/karthikyannabathina/startupmeu-intern-tracker/blob/main/client/src/hooks/useApplications.js"
click node_form_hook "https://github.com/karthikyannabathina/startupmeu-intern-tracker/blob/main/client/src/hooks/useApplicationForm.js"
click node_service "https://github.com/karthikyannabathina/startupmeu-intern-tracker/blob/main/client/src/services/applicationService.js"
click node_routes "https://github.com/karthikyannabathina/startupmeu-intern-tracker/blob/main/server/routes/applicationRoutes.js"
click node_controller "https://github.com/karthikyannabathina/startupmeu-intern-tracker/blob/main/server/controllers/applicationController.js"
click node_responses "https://github.com/karthikyannabathina/startupmeu-intern-tracker/blob/main/server/utils/apiResponse.js"
click node_errors "https://github.com/karthikyannabathina/startupmeu-intern-tracker/blob/main/server/middleware/errorHandler.js"
click node_server "https://github.com/karthikyannabathina/startupmeu-intern-tracker/blob/main/server/server.js"
click node_model "https://github.com/karthikyannabathina/startupmeu-intern-tracker/blob/main/server/models/Application.js"
click node_db_config "https://github.com/karthikyannabathina/startupmeu-intern-tracker/blob/main/server/config/db.js"

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_app,node_header,node_dashboard,node_stats,node_filters,node_list,node_form,node_bottom_nav,node_user toneBlue
class node_statuses,node_applications_hook,node_form_hook,node_service,node_mongodb toneAmber
class node_routes,node_controller,node_responses,node_errors,node_server toneMint
class node_model,node_db_config toneRose
```

## Components

### Dashboard UI

- [App composition](https://github.com/karthikyannabathina/startupmeu-intern-tracker/blob/main/client/src/App.jsx): `client/src/App.jsx`
- [Header actions](https://github.com/karthikyannabathina/startupmeu-intern-tracker/blob/main/client/src/components/Header.jsx): `client/src/components/Header.jsx`
- [Dashboard](https://github.com/karthikyannabathina/startupmeu-intern-tracker/blob/main/client/src/components/Dashboard.jsx): `client/src/components/Dashboard.jsx`
- [Stats cards](https://github.com/karthikyannabathina/startupmeu-intern-tracker/blob/main/client/src/components/StatsCards.jsx): `client/src/components/StatsCards.jsx`
- [Application filters](https://github.com/karthikyannabathina/startupmeu-intern-tracker/blob/main/client/src/components/ApplicationFilters.jsx): `client/src/components/ApplicationFilters.jsx`
- [Application list](https://github.com/karthikyannabathina/startupmeu-intern-tracker/blob/main/client/src/components/ApplicationList.jsx): `client/src/components/ApplicationList.jsx`
- [Application form](https://github.com/karthikyannabathina/startupmeu-intern-tracker/blob/main/client/src/components/ApplicationForm.jsx): `client/src/components/ApplicationForm.jsx`
- [Bottom navigation](https://github.com/karthikyannabathina/startupmeu-intern-tracker/blob/main/client/src/components/BottomNavigation.jsx): `client/src/components/BottomNavigation.jsx`

### Client State

- [Status choices](https://github.com/karthikyannabathina/startupmeu-intern-tracker/blob/main/client/src/constants/statuses.js): `client/src/constants/statuses.js`
- [Applications state](https://github.com/karthikyannabathina/startupmeu-intern-tracker/blob/main/client/src/hooks/useApplications.js): `client/src/hooks/useApplications.js`
- [Form state](https://github.com/karthikyannabathina/startupmeu-intern-tracker/blob/main/client/src/hooks/useApplicationForm.js): `client/src/hooks/useApplicationForm.js`
- [REST client](https://github.com/karthikyannabathina/startupmeu-intern-tracker/blob/main/client/src/services/applicationService.js): `client/src/services/applicationService.js`

### API Layer

- [Application routes](https://github.com/karthikyannabathina/startupmeu-intern-tracker/blob/main/server/routes/applicationRoutes.js): `server/routes/applicationRoutes.js`
- [Application operations](https://github.com/karthikyannabathina/startupmeu-intern-tracker/blob/main/server/controllers/applicationController.js): `server/controllers/applicationController.js`
- [Response envelope](https://github.com/karthikyannabathina/startupmeu-intern-tracker/blob/main/server/utils/apiResponse.js): `server/utils/apiResponse.js`
- [Error middleware](https://github.com/karthikyannabathina/startupmeu-intern-tracker/blob/main/server/middleware/errorHandler.js): `server/middleware/errorHandler.js`
- [Express server](https://github.com/karthikyannabathina/startupmeu-intern-tracker/blob/main/server/server.js): `server/server.js`

### Persistence

- [Application schema](https://github.com/karthikyannabathina/startupmeu-intern-tracker/blob/main/server/models/Application.js): `server/models/Application.js`
- [Database connection](https://github.com/karthikyannabathina/startupmeu-intern-tracker/blob/main/server/config/db.js): `server/config/db.js`

### Other components

- **Internship tracker user**
- **MongoDB**

## Connections

- Internship tracker user → App composition: uses (evidence: `README.md`)
- App composition → Header actions: renders (evidence: `client/src/App.jsx`)
- App composition → Dashboard: renders (evidence: `client/src/App.jsx`)
- App composition → Application form: renders (evidence: `client/src/App.jsx`)
- App composition → Bottom navigation: renders (evidence: `client/src/App.jsx`)
- App composition → Applications state: initializes (evidence: `client/src/App.jsx`)
- App composition → Form state: initializes (evidence: `client/src/App.jsx`)
- Dashboard → Stats cards: renders (evidence: `client/src/components/Dashboard.jsx`)
- Dashboard → Application filters: renders (evidence: `client/src/components/Dashboard.jsx`)
- Dashboard → Application list: renders (evidence: `client/src/components/Dashboard.jsx`)
- Application form → Status choices: uses choices (evidence: `client/src/components/ApplicationForm.jsx`)
- Application filters → Status choices: uses choices (evidence: `client/src/components/ApplicationFilters.jsx`)
- Applications state → REST client: fetches and deletes (evidence: `client/src/hooks/useApplications.js`)
- Form state → REST client: creates and updates (evidence: `client/src/hooks/useApplicationForm.js`)
- Header actions → Form state: opens form (evidence: `client/src/App.jsx`)
- Application list → Form state: edits record
- Application list → Applications state: deletes record
- REST client → Express server: calls REST API (evidence: `README.md`)
- Express server → Application routes: mounts routes (evidence: `server/server.js`)
- Application routes → Application operations: dispatches (evidence: `server/routes/applicationRoutes.js`)
- Express server → Database connection: connects database (evidence: `server/server.js`)
- Express server → Error middleware: registers middleware (evidence: `server/server.js`)
- Application operations → Application schema: queries and aggregates (evidence: `server/controllers/applicationController.js`)
- Application operations → Response envelope: sends envelopes (evidence: `server/controllers/applicationController.js`)
- Database connection → MongoDB: connects (evidence: `README.md`)
- Application schema → MongoDB: stores records (evidence: `README.md`)
