# arthur-fleck19/ifsports architecture

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

## Overview

IFsports is a small sports-commerce storefront with account registration and login, a product showcase/detail view, and an administrator user-management area. The visible storefront is largely static; the sampled detail script only handles quantity controls, and no cart or product persistence implementation is shown. The PHP account-management class provides user CRUD against MySQL. Password-reset pages exist in the tree, but their processing and connections are not visible in the sampled source, so those flows are shown without asserted links.

Main entry points: [`Usuário_gerenciamento.php`](https://github.com/arthur-fleck19/ifsports/blob/main/Usu%C3%A1rio_gerenciamento.php) (User CRUD), [`detalhesItem.html`](https://github.com/arthur-fleck19/ifsports/blob/main/detalhesItem.html) (Item details), [`conexão.php`](https://github.com/arthur-fleck19/ifsports/blob/main/conex%C3%A3o.php) (Database connection), [`dashboard.php`](https://github.com/arthur-fleck19/ifsports/blob/main/dashboard.php) (Product showcase)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_storefront["Storefront"]
  node_dashboard["Product showcase<br/>[dashboard.php]"]
  node_item["Item details<br/>[detalhesItem.html]"]
  node_quantity["Quantity controls<br/>[detalhesItem.js]"]
  node_products_page["Product page<br/>[produtos.html]"]
end

subgraph group_accounts["Accounts"]
  node_signup_page["Registration form<br/>[cadastro.html]"]
  node_signup_handler["Registration handler"]
  node_login_page["Login form<br/>[login.html]"]
  node_login_handler["Login handler<br/>[login.php]"]
  node_reset_page["Password recovery"]
  node_code_page["Recovery code"]
  node_change_page["Change password<br/>[mudar_senha.html]"]
end

subgraph group_admin["Administration"]
  node_user_admin["User management page"]
  node_create_update_delete["User CRUD"]
  node_edit_handler["Edit handler<br/>[editar_usuario.php]"]
  node_delete_handler["Delete handler"]
end

subgraph group_persistence["Persistence"]
  node_user_store[("MySQL user store<br/>[codigo_banco.sql]")]
  node_db_connection["Database connection<br/>[conexão.php]"]
end

node_shopper(("Shopper"))

node_shopper -.->|"browses"| node_dashboard
node_dashboard -->|"links to"| node_item
node_shopper -.->|"views"| node_item
node_item -.->|"uses controls"| node_quantity
node_shopper -.->|"browses"| node_products_page
node_shopper -.->|"registers"| node_signup_page
node_signup_handler -->|"creates user"| node_create_update_delete
node_shopper -.->|"signs in"| node_login_page
node_login_handler -->|"queries through"| node_db_connection
node_shopper -.->|"requests recovery"| node_reset_page
node_shopper -.->|"enters code"| node_code_page
node_shopper -.->|"changes password"| node_change_page
node_user_admin -->|"lists users"| node_create_update_delete
node_edit_handler -->|"updates user"| node_create_update_delete
node_delete_handler -->|"deletes user"| node_create_update_delete
node_create_update_delete -->|"queries through"| node_db_connection
node_db_connection -.->|"connects to"| node_user_store

click node_dashboard "https://github.com/arthur-fleck19/ifsports/blob/main/dashboard.php"
click node_item "https://github.com/arthur-fleck19/ifsports/blob/main/detalhesItem.html"
click node_quantity "https://github.com/arthur-fleck19/ifsports/blob/main/JS/detalhesItem.js"
click node_products_page "https://github.com/arthur-fleck19/ifsports/blob/main/produtos.html"
click node_signup_page "https://github.com/arthur-fleck19/ifsports/blob/main/cadastro.html"
click node_signup_handler "https://github.com/arthur-fleck19/ifsports/blob/main/cadastro_processo.php"
click node_login_page "https://github.com/arthur-fleck19/ifsports/blob/main/login.html"
click node_login_handler "https://github.com/arthur-fleck19/ifsports/blob/main/login.php"
click node_reset_page "https://github.com/arthur-fleck19/ifsports/blob/main/redefinir_senha.html"
click node_code_page "https://github.com/arthur-fleck19/ifsports/blob/main/insira_o_codigo.html"
click node_change_page "https://github.com/arthur-fleck19/ifsports/blob/main/mudar_senha.html"
click node_user_admin "https://github.com/arthur-fleck19/ifsports/blob/main/gerenciamento_usuarios.php"
click node_create_update_delete "https://github.com/arthur-fleck19/ifsports/blob/main/Usu%C3%A1rio_gerenciamento.php"
click node_edit_handler "https://github.com/arthur-fleck19/ifsports/blob/main/editar_usuario.php"
click node_delete_handler "https://github.com/arthur-fleck19/ifsports/blob/main/excluir_usuario.php"
click node_user_store "https://github.com/arthur-fleck19/ifsports/blob/main/codigo_banco.sql"
click node_db_connection "https://github.com/arthur-fleck19/ifsports/blob/main/conex%C3%A3o.php"

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_dashboard,node_item,node_quantity,node_products_page toneBlue
class node_signup_page,node_signup_handler,node_login_page,node_login_handler,node_reset_page,node_code_page,node_change_page toneAmber
class node_user_admin,node_create_update_delete,node_edit_handler,node_delete_handler toneMint
class node_user_store,node_db_connection toneRose
class node_shopper toneIndigo
```

## Components

### Storefront

- [Product showcase](https://github.com/arthur-fleck19/ifsports/blob/main/dashboard.php): `dashboard.php`
- [Item details](https://github.com/arthur-fleck19/ifsports/blob/main/detalhesItem.html): `detalhesItem.html`
- [Quantity controls](https://github.com/arthur-fleck19/ifsports/blob/main/JS/detalhesItem.js): `JS/detalhesItem.js`
- [Product page](https://github.com/arthur-fleck19/ifsports/blob/main/produtos.html): `produtos.html`

### Accounts

- [Registration form](https://github.com/arthur-fleck19/ifsports/blob/main/cadastro.html): `cadastro.html`
- [Registration handler](https://github.com/arthur-fleck19/ifsports/blob/main/cadastro_processo.php): `cadastro_processo.php`
- [Login form](https://github.com/arthur-fleck19/ifsports/blob/main/login.html): `login.html`
- [Login handler](https://github.com/arthur-fleck19/ifsports/blob/main/login.php): `login.php`
- [Password recovery](https://github.com/arthur-fleck19/ifsports/blob/main/redefinir_senha.html): `redefinir_senha.html`
- [Recovery code](https://github.com/arthur-fleck19/ifsports/blob/main/insira_o_codigo.html): `insira_o_codigo.html`
- [Change password](https://github.com/arthur-fleck19/ifsports/blob/main/mudar_senha.html): `mudar_senha.html`

### Administration

- [User management page](https://github.com/arthur-fleck19/ifsports/blob/main/gerenciamento_usuarios.php): `gerenciamento_usuarios.php`
- [User CRUD](https://github.com/arthur-fleck19/ifsports/blob/main/Usu%C3%A1rio_gerenciamento.php): `Usuário_gerenciamento.php`
- [Edit handler](https://github.com/arthur-fleck19/ifsports/blob/main/editar_usuario.php): `editar_usuario.php`
- [Delete handler](https://github.com/arthur-fleck19/ifsports/blob/main/excluir_usuario.php): `excluir_usuario.php`

### Persistence

- [MySQL user store](https://github.com/arthur-fleck19/ifsports/blob/main/codigo_banco.sql): `codigo_banco.sql`
- [Database connection](https://github.com/arthur-fleck19/ifsports/blob/main/conex%C3%A3o.php): `conexão.php`

### Other components

- **Shopper**

## Connections

- Shopper → Product showcase: browses
- Product showcase → Item details: links to (evidence: `dashboard.php`)
- Shopper → Item details: views
- Item details → Quantity controls: uses controls
- Shopper → Product page: browses
- Shopper → Registration form: registers
- Registration handler → User CRUD: creates user (evidence: `cadastro_processo.php`)
- Shopper → Login form: signs in
- Login handler → Database connection: queries through (evidence: `login.php`)
- Shopper → Password recovery: requests recovery
- Shopper → Recovery code: enters code
- Shopper → Change password: changes password
- User management page → User CRUD: lists users (evidence: `gerenciamento_usuarios.php`)
- Edit handler → User CRUD: updates user (evidence: `editar_usuario.php`)
- Delete handler → User CRUD: deletes user (evidence: `excluir_usuario.php`)
- User CRUD → Database connection: queries through (evidence: `Usuário_gerenciamento.php`)
- Database connection → MySQL user store: connects to
