# murnster/simplesport architecture

> Architecture diagram of the GitHub repository murnster/simplesport, 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/murnster/simplesport
- Repository: https://github.com/murnster/simplesport

## Overview

SimpleSport is a team-management web app for managing a team’s schedule, roster, settings, and email communication. A team manager enters through the React app, navigates to a feature, and works with events, members, or team configuration; the dashboard also provides quick event creation and messaging. The README documents an Express/MySQL server, but the sampled evidence does not establish how the client connects to it. The graph therefore marks that integration as unverified; it also shows the documented EmailJS messaging integration.

Main entry points: [`client/src/App.js`](https://github.com/murnster/simplesport/blob/main/client/src/App.js) (App navigation), [`client/src/components/Dashboard.jsx`](https://github.com/murnster/simplesport/blob/main/client/src/components/Dashboard.jsx) (Dashboard), [`client/src/components/Schedule.jsx`](https://github.com/murnster/simplesport/blob/main/client/src/components/Schedule.jsx) (Schedule), [`client/src/components/Roster.jsx`](https://github.com/murnster/simplesport/blob/main/client/src/components/Roster.jsx) (Roster)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Client navigation"]
  node_app["App navigation<br/>[App.js]"]
end

subgraph group_features["Team management"]
  node_dashboard["Dashboard<br/>[Dashboard.jsx]"]
  node_schedule["Schedule<br/>[Schedule.jsx]"]
  node_roster["Roster<br/>[Roster.jsx]"]
  node_messenger["Messenger<br/>[Messenger.jsx]"]
  node_settings["Settings<br/>[System.jsx]"]
end

subgraph group_ui["Shared UI"]
  node_input["Form inputs<br/>[Input.jsx]"]
  node_bigcontainer["Expandable panels<br/>[BigContainer.jsx]"]
  node_fullcontainer["Feature panels<br/>[FullContainer.jsx]"]
  node_popup["Edit popups<br/>[Popup.jsx]"]
  node_toast["Status toasts<br/>[Toast.jsx]"]
  node_smallcontainer["Compact panels<br/>[SmallContainer.jsx]"]
end

subgraph group_server["Server and data"]
  node_serverapi["Express API<br/>[index.js]"]
  node_dbconfig["MySQL connection<br/>[database.js]"]
  node_schema["Team data schema<br/>[master.sql]"]
end

node_manager(("Team manager"))
node_mysqldb[("MySQL database")]
node_emailjs["EmailJS"]

node_manager -->|"uses"| node_app
node_app -->|"renders"| node_dashboard
node_app -->|"renders"| node_schedule
node_app -->|"renders"| node_roster
node_app -->|"renders"| node_messenger
node_app -->|"renders"| node_settings
node_dashboard -->|"opens"| node_schedule
node_dashboard -->|"summarizes"| node_roster
node_dashboard -->|"quick messages"| node_messenger
node_dashboard -->|"uses"| node_input
node_dashboard -->|"uses"| node_smallcontainer
node_schedule -->|"uses"| node_input
node_schedule -->|"renders"| node_fullcontainer
node_schedule -->|"renders"| node_popup
node_schedule -->|"renders"| node_toast
node_roster -->|"uses"| node_input
node_roster -->|"renders"| node_fullcontainer
node_roster -->|"renders"| node_popup
node_roster -->|"renders"| node_toast
node_messenger -->|"uses"| node_input
node_messenger -->|"renders"| node_fullcontainer
node_messenger -->|"renders"| node_toast
node_messenger -->|"sends email"| node_emailjs
node_settings -->|"uses"| node_input
node_settings -->|"renders"| node_bigcontainer
node_settings -->|"renders"| node_toast
node_serverapi -->|"uses connection"| node_dbconfig
node_dbconfig -->|"connects"| node_mysqldb
node_manager -.->|"uses backend"| node_serverapi
node_schema -.->|"defines tables"| node_mysqldb

click node_app "https://github.com/murnster/simplesport/blob/main/client/src/App.js"
click node_dashboard "https://github.com/murnster/simplesport/blob/main/client/src/components/Dashboard.jsx"
click node_schedule "https://github.com/murnster/simplesport/blob/main/client/src/components/Schedule.jsx"
click node_roster "https://github.com/murnster/simplesport/blob/main/client/src/components/Roster.jsx"
click node_messenger "https://github.com/murnster/simplesport/blob/main/client/src/components/Messenger.jsx"
click node_settings "https://github.com/murnster/simplesport/blob/main/client/src/components/System.jsx"
click node_input "https://github.com/murnster/simplesport/blob/main/client/src/components/Input.jsx"
click node_bigcontainer "https://github.com/murnster/simplesport/blob/main/client/src/components/BigContainer.jsx"
click node_fullcontainer "https://github.com/murnster/simplesport/blob/main/client/src/components/FullContainer.jsx"
click node_popup "https://github.com/murnster/simplesport/blob/main/client/src/components/Popup.jsx"
click node_toast "https://github.com/murnster/simplesport/blob/main/client/src/components/Toast.jsx"
click node_smallcontainer "https://github.com/murnster/simplesport/blob/main/client/src/components/SmallContainer.jsx"
click node_serverapi "https://github.com/murnster/simplesport/blob/main/server/index.js"
click node_dbconfig "https://github.com/murnster/simplesport/blob/main/server/database.js"
click node_schema "https://github.com/murnster/simplesport/blob/main/server/master.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_app toneBlue
class node_dashboard,node_schedule,node_roster,node_messenger,node_settings,node_mysqldb toneAmber
class node_input,node_bigcontainer,node_fullcontainer,node_popup,node_toast,node_smallcontainer toneMint
class node_serverapi,node_dbconfig,node_schema toneRose
class node_manager,node_emailjs toneIndigo
```

## Components

### Client navigation

- [App navigation](https://github.com/murnster/simplesport/blob/main/client/src/App.js): `client/src/App.js`

### Team management

- [Dashboard](https://github.com/murnster/simplesport/blob/main/client/src/components/Dashboard.jsx): `client/src/components/Dashboard.jsx`
- [Schedule](https://github.com/murnster/simplesport/blob/main/client/src/components/Schedule.jsx): `client/src/components/Schedule.jsx`
- [Roster](https://github.com/murnster/simplesport/blob/main/client/src/components/Roster.jsx): `client/src/components/Roster.jsx`
- [Messenger](https://github.com/murnster/simplesport/blob/main/client/src/components/Messenger.jsx): `client/src/components/Messenger.jsx`
- [Settings](https://github.com/murnster/simplesport/blob/main/client/src/components/System.jsx): `client/src/components/System.jsx`

### Shared UI

- [Form inputs](https://github.com/murnster/simplesport/blob/main/client/src/components/Input.jsx): `client/src/components/Input.jsx`
- [Expandable panels](https://github.com/murnster/simplesport/blob/main/client/src/components/BigContainer.jsx): `client/src/components/BigContainer.jsx`
- [Feature panels](https://github.com/murnster/simplesport/blob/main/client/src/components/FullContainer.jsx): `client/src/components/FullContainer.jsx`
- [Edit popups](https://github.com/murnster/simplesport/blob/main/client/src/components/Popup.jsx): `client/src/components/Popup.jsx`
- [Status toasts](https://github.com/murnster/simplesport/blob/main/client/src/components/Toast.jsx): `client/src/components/Toast.jsx`
- [Compact panels](https://github.com/murnster/simplesport/blob/main/client/src/components/SmallContainer.jsx): `client/src/components/SmallContainer.jsx`

### Server and data

- [Express API](https://github.com/murnster/simplesport/blob/main/server/index.js): `server/index.js`
- [MySQL connection](https://github.com/murnster/simplesport/blob/main/server/database.js): `server/database.js`
- [Team data schema](https://github.com/murnster/simplesport/blob/main/server/master.sql): `server/master.sql`

### Other components

- **Team manager**
- **MySQL database**
- **EmailJS**

## Connections

- Team manager → App navigation: uses (evidence: `README.md`)
- App navigation → Dashboard: renders (evidence: `client/src/App.js`)
- App navigation → Schedule: renders (evidence: `client/src/App.js`)
- App navigation → Roster: renders (evidence: `client/src/App.js`)
- App navigation → Messenger: renders (evidence: `client/src/App.js`)
- App navigation → Settings: renders (evidence: `client/src/App.js`)
- Dashboard → Schedule: opens (evidence: `README.md`)
- Dashboard → Roster: summarizes (evidence: `README.md`)
- Dashboard → Messenger: quick messages (evidence: `README.md`)
- Dashboard → Form inputs: uses (evidence: `client/src/components/Dashboard.jsx`)
- Dashboard → Compact panels: uses (evidence: `client/src/components/Dashboard.jsx`)
- Schedule → Form inputs: uses (evidence: `client/src/components/Schedule.jsx`)
- Schedule → Feature panels: renders (evidence: `client/src/components/Schedule.jsx`)
- Schedule → Edit popups: renders (evidence: `client/src/components/Schedule.jsx`)
- Schedule → Status toasts: renders (evidence: `client/src/components/Schedule.jsx`)
- Roster → Form inputs: uses (evidence: `client/src/components/Roster.jsx`)
- Roster → Feature panels: renders (evidence: `client/src/components/Roster.jsx`)
- Roster → Edit popups: renders (evidence: `client/src/components/Roster.jsx`)
- Roster → Status toasts: renders (evidence: `client/src/components/Roster.jsx`)
- Messenger → Form inputs: uses (evidence: `client/src/components/Messenger.jsx`)
- Messenger → Feature panels: renders (evidence: `client/src/components/Messenger.jsx`)
- Messenger → Status toasts: renders (evidence: `client/src/components/Messenger.jsx`)
- Messenger → EmailJS: sends email (evidence: `client/src/components/Messenger.jsx`)
- Settings → Form inputs: uses (evidence: `client/src/components/System.jsx`)
- Settings → Expandable panels: renders (evidence: `client/src/components/System.jsx`)
- Settings → Status toasts: renders (evidence: `client/src/components/System.jsx`)
- Express API → MySQL connection: uses connection (evidence: `server/index.js`)
- MySQL connection → MySQL database: connects (evidence: `server/database.js`)
- Team manager → Express API: uses backend (evidence: `README.md`)
- Team data schema → MySQL database: defines tables (evidence: `README.md`)
