# cpalm21/campus-marketplace architecture

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

- Interactive diagram: https://gitdiagram.com/cpalm21/campus-marketplace
- Repository: https://github.com/cpalm21/campus-marketplace

## Overview

This monorepo is a campus-marketplace project, but its current runtime is still a starter scaffold: the frontend displays the Vite/React demo, the Spring Boot backend has no endpoints, and the README says the apps do not communicate. Database migrations define the marketplace schema and reference data; the README documents deployment to Supabase. No implemented user-to-marketplace-result workflow is evidenced, so the graph shows the existing entry points and documented database capability instead. Source excerpts confirm frontend rendering and backend startup; other relationships are limited to README statements.

Main entry points: [`frontend/src/main.tsx`](https://github.com/cpalm21/campus-marketplace/blob/main/frontend/src/main.tsx) (React entry), [`frontend/src/App.tsx`](https://github.com/cpalm21/campus-marketplace/blob/main/frontend/src/App.tsx) (Starter screen), [`supabase/migrations`](https://github.com/cpalm21/campus-marketplace/tree/main/supabase/migrations) (Marketplace schema), [`supabase/migrations/20261007143500_add_marketplace_reference_data.sql`](https://github.com/cpalm21/campus-marketplace/blob/main/supabase/migrations/20261007143500_add_marketplace_reference_data.sql) (Reference data)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Frontend"]
  node_frontend_entry["React entry<br/>[main.tsx]"]
  node_starter_ui["Starter screen<br/>[App.tsx]"]
  node_app_styles["App styles<br/>[App.css]"]
end

subgraph group_backend["Backend"]
  node_api_process["Spring Boot process"]
end

subgraph group_data["Database"]
  node_schema_migrations[("Marketplace schema")]
  node_reference_migration["Reference data"]
  node_seed_data["Demo seed data<br/>[seed.sql]"]
end

node_visitor(("Browser visitor"))
node_supabase_db[("Supabase database")]

node_visitor -->|"opens app"| node_frontend_entry
node_frontend_entry -->|"renders"| node_starter_ui
node_starter_ui -->|"imports styles"| node_app_styles
node_schema_migrations -->|"deploys schema"| node_supabase_db
node_reference_migration -->|"adds reference data"| node_supabase_db

click node_frontend_entry "https://github.com/cpalm21/campus-marketplace/blob/main/frontend/src/main.tsx"
click node_starter_ui "https://github.com/cpalm21/campus-marketplace/blob/main/frontend/src/App.tsx"
click node_app_styles "https://github.com/cpalm21/campus-marketplace/blob/main/frontend/src/App.css"
click node_api_process "https://github.com/cpalm21/campus-marketplace/blob/main/backend/src/main/java/edu/udel/campusmarketplace/BackendApplication.java"
click node_schema_migrations "https://github.com/cpalm21/campus-marketplace/tree/main/supabase/migrations"
click node_reference_migration "https://github.com/cpalm21/campus-marketplace/blob/main/supabase/migrations/20261007143500_add_marketplace_reference_data.sql"
click node_seed_data "https://github.com/cpalm21/campus-marketplace/blob/main/supabase/seed.sql"

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_frontend_entry,node_starter_ui,node_app_styles,node_visitor toneBlue
class node_api_process,node_supabase_db toneAmber
class node_schema_migrations,node_reference_migration,node_seed_data toneMint
```

## Components

### Frontend

- [React entry](https://github.com/cpalm21/campus-marketplace/blob/main/frontend/src/main.tsx): `frontend/src/main.tsx`
- [Starter screen](https://github.com/cpalm21/campus-marketplace/blob/main/frontend/src/App.tsx): `frontend/src/App.tsx`
- [App styles](https://github.com/cpalm21/campus-marketplace/blob/main/frontend/src/App.css): `frontend/src/App.css`

### Backend

- [Spring Boot process](https://github.com/cpalm21/campus-marketplace/blob/main/backend/src/main/java/edu/udel/campusmarketplace/BackendApplication.java): `backend/src/main/java/edu/udel/campusmarketplace/BackendApplication.java`

### Database

- [Marketplace schema](https://github.com/cpalm21/campus-marketplace/tree/main/supabase/migrations): `supabase/migrations`
- [Reference data](https://github.com/cpalm21/campus-marketplace/blob/main/supabase/migrations/20261007143500_add_marketplace_reference_data.sql): `supabase/migrations/20261007143500_add_marketplace_reference_data.sql`
- [Demo seed data](https://github.com/cpalm21/campus-marketplace/blob/main/supabase/seed.sql): `supabase/seed.sql`

### Other components

- **Browser visitor**
- **Supabase database**

## Connections

- Browser visitor → React entry: opens app (evidence: `README.md`)
- React entry → Starter screen: renders (evidence: `frontend/src/main.tsx`)
- Starter screen → App styles: imports styles (evidence: `frontend/src/App.tsx`)
- Marketplace schema → Supabase database: deploys schema (evidence: `README.md`)
- Reference data → Supabase database: adds reference data (evidence: `README.md`)
