# carolina05m/pet-care-projeto architecture

> Architecture diagram of the GitHub repository carolina05m/pet-care-projeto, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-22). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/carolina05m/pet-care-projeto
- Repository: https://github.com/carolina05m/pet-care-projeto

## Overview

PetCare is a React pet-shop storefront and management portal. Visitors browse the site, products, and services; customers can create accounts, place products in a local cart with delivery details, and submit service appointments, then view or cancel appointments. Administrators manage products, services, and appointments. The graph follows the router and sampled Supabase calls; the README documents additional catalog and panel capabilities, but unsampled implementations are represented only at their known page paths.

Main entry points: [`src/routes.jsx`](https://github.com/carolina05m/pet-care-projeto/blob/main/src/routes.jsx) (Page router), [`src/services/supabaseClient.js`](https://github.com/carolina05m/pet-care-projeto/blob/main/src/services/supabaseClient.js) (Supabase client), [`src/components/Header/index.jsx`](https://github.com/carolina05m/pet-care-projeto/blob/main/src/components/Header/index.jsx) (Navigation header), [`src/components/Footer/index.jsx`](https://github.com/carolina05m/pet-care-projeto/blob/main/src/components/Footer/index.jsx) (Site footer)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Application and routing"]
  node_app["Application shell<br/>[App.jsx]"]
  node_routes["Page router<br/>[routes.jsx]"]
  node_header["Navigation header<br/>[index.jsx]"]
  node_footer["Site footer<br/>[index.jsx]"]
end

subgraph group_storefront["Storefront pages"]
  node_home["Home page<br/>[index.jsx]"]
  node_about["About page<br/>[index.jsx]"]
  node_contact["Contact page<br/>[index.jsx]"]
  node_products["Product catalog and cart<br/>[index.jsx]"]
  node_services["Services and booking<br/>[index.jsx]"]
end

subgraph group_customer["Customer account"]
  node_login["Sign-in and registration<br/>[index.jsx]"]
  node_customer["Customer appointments<br/>[index.jsx]"]
end

subgraph group_operations["Data and administration"]
  node_admin["Administration panel<br/>[index.jsx]"]
  node_supabase_client["Supabase client<br/>[supabaseClient.js]"]
end

node_visitor(("Visitor or customer"))
node_supabase[("Supabase backend")]

node_visitor -->|"opens"| node_app
node_app -->|"renders"| node_routes
node_routes -->|"routes to"| node_home
node_routes -->|"routes to"| node_about
node_routes -->|"routes to"| node_contact
node_routes -->|"routes to"| node_products
node_routes -->|"routes to"| node_services
node_routes -->|"routes to"| node_login
node_routes -->|"routes to"| node_customer
node_routes -->|"routes to"| node_admin
node_home -->|"renders"| node_header
node_home -->|"renders"| node_footer
node_about -->|"renders"| node_header
node_about -->|"renders"| node_footer
node_contact -->|"renders"| node_header
node_contact -->|"renders"| node_footer
node_products -->|"renders"| node_header
node_products -->|"renders"| node_footer
node_services -->|"renders"| node_header
node_services -->|"renders"| node_footer
node_login -->|"renders"| node_header
node_login -->|"renders"| node_footer
node_customer -->|"renders"| node_header
node_customer -->|"renders"| node_footer
node_visitor -->|"navigates"| node_routes
node_app -->|"checks session"| node_supabase_client
node_header -->|"checks auth"| node_supabase_client
node_login -->|"authenticates"| node_supabase_client
node_products -->|"loads catalog"| node_supabase_client
node_services -->|"loads services"| node_supabase_client
node_services -->|"inserts appointment"| node_supabase_client
node_customer -->|"reads appointments"| node_supabase_client
node_customer -->|"deletes appointment"| node_supabase_client
node_admin -->|"manages records"| node_supabase_client
node_supabase_client -->|"connects to"| node_supabase
node_visitor -->|"browses and shops"| node_products
node_visitor -->|"books care"| node_services
node_visitor -->|"signs in"| node_login
node_visitor -->|"views bookings"| node_customer
node_visitor -->|"manages shop"| node_admin

click node_app "https://github.com/carolina05m/pet-care-projeto/blob/main/src/App.jsx"
click node_routes "https://github.com/carolina05m/pet-care-projeto/blob/main/src/routes.jsx"
click node_header "https://github.com/carolina05m/pet-care-projeto/blob/main/src/components/Header/index.jsx"
click node_footer "https://github.com/carolina05m/pet-care-projeto/blob/main/src/components/Footer/index.jsx"
click node_home "https://github.com/carolina05m/pet-care-projeto/blob/main/src/pages/Home/index.jsx"
click node_about "https://github.com/carolina05m/pet-care-projeto/blob/main/src/pages/Sobre/index.jsx"
click node_contact "https://github.com/carolina05m/pet-care-projeto/blob/main/src/pages/Contato/index.jsx"
click node_products "https://github.com/carolina05m/pet-care-projeto/blob/main/src/pages/Produtos/index.jsx"
click node_services "https://github.com/carolina05m/pet-care-projeto/blob/main/src/pages/Servicos/index.jsx"
click node_login "https://github.com/carolina05m/pet-care-projeto/blob/main/src/pages/Entrar/index.jsx"
click node_customer "https://github.com/carolina05m/pet-care-projeto/blob/main/src/pages/Clientes/index.jsx"
click node_admin "https://github.com/carolina05m/pet-care-projeto/blob/main/src/pages/Administrador/index.jsx"
click node_supabase_client "https://github.com/carolina05m/pet-care-projeto/blob/main/src/services/supabaseClient.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_routes,node_header,node_footer toneBlue
class node_home,node_about,node_contact,node_products,node_services,node_supabase toneAmber
class node_login,node_customer toneMint
class node_admin,node_supabase_client toneRose
class node_visitor toneIndigo
```

## Components

### Application and routing

- [Application shell](https://github.com/carolina05m/pet-care-projeto/blob/main/src/App.jsx): `src/App.jsx`
- [Page router](https://github.com/carolina05m/pet-care-projeto/blob/main/src/routes.jsx): `src/routes.jsx`
- [Navigation header](https://github.com/carolina05m/pet-care-projeto/blob/main/src/components/Header/index.jsx): `src/components/Header/index.jsx`
- [Site footer](https://github.com/carolina05m/pet-care-projeto/blob/main/src/components/Footer/index.jsx): `src/components/Footer/index.jsx`

### Storefront pages

- [Home page](https://github.com/carolina05m/pet-care-projeto/blob/main/src/pages/Home/index.jsx): `src/pages/Home/index.jsx`
- [About page](https://github.com/carolina05m/pet-care-projeto/blob/main/src/pages/Sobre/index.jsx): `src/pages/Sobre/index.jsx`
- [Contact page](https://github.com/carolina05m/pet-care-projeto/blob/main/src/pages/Contato/index.jsx): `src/pages/Contato/index.jsx`
- [Product catalog and cart](https://github.com/carolina05m/pet-care-projeto/blob/main/src/pages/Produtos/index.jsx): `src/pages/Produtos/index.jsx`
- [Services and booking](https://github.com/carolina05m/pet-care-projeto/blob/main/src/pages/Servicos/index.jsx): `src/pages/Servicos/index.jsx`

### Customer account

- [Sign-in and registration](https://github.com/carolina05m/pet-care-projeto/blob/main/src/pages/Entrar/index.jsx): `src/pages/Entrar/index.jsx`
- [Customer appointments](https://github.com/carolina05m/pet-care-projeto/blob/main/src/pages/Clientes/index.jsx): `src/pages/Clientes/index.jsx`

### Data and administration

- [Administration panel](https://github.com/carolina05m/pet-care-projeto/blob/main/src/pages/Administrador/index.jsx): `src/pages/Administrador/index.jsx`
- [Supabase client](https://github.com/carolina05m/pet-care-projeto/blob/main/src/services/supabaseClient.js): `src/services/supabaseClient.js`

### Other components

- **Visitor or customer**
- **Supabase backend**

## Connections

- Visitor or customer → Application shell: opens
- Application shell → Page router: renders (evidence: `src/App.jsx`)
- Page router → Home page: routes to (evidence: `src/routes.jsx`)
- Page router → About page: routes to (evidence: `src/routes.jsx`)
- Page router → Contact page: routes to (evidence: `src/routes.jsx`)
- Page router → Product catalog and cart: routes to (evidence: `src/routes.jsx`)
- Page router → Services and booking: routes to (evidence: `src/routes.jsx`)
- Page router → Sign-in and registration: routes to (evidence: `src/routes.jsx`)
- Page router → Customer appointments: routes to (evidence: `src/routes.jsx`)
- Page router → Administration panel: routes to (evidence: `src/routes.jsx`)
- Home page → Navigation header: renders (evidence: `src/pages/Home/index.jsx`)
- Home page → Site footer: renders (evidence: `src/pages/Home/index.jsx`)
- About page → Navigation header: renders (evidence: `src/pages/Sobre/index.jsx`)
- About page → Site footer: renders (evidence: `src/pages/Sobre/index.jsx`)
- Contact page → Navigation header: renders (evidence: `src/pages/Contato/index.jsx`)
- Contact page → Site footer: renders (evidence: `src/pages/Contato/index.jsx`)
- Product catalog and cart → Navigation header: renders (evidence: `src/pages/Produtos/index.jsx`)
- Product catalog and cart → Site footer: renders (evidence: `src/pages/Produtos/index.jsx`)
- Services and booking → Navigation header: renders (evidence: `src/pages/Servicos/index.jsx`)
- Services and booking → Site footer: renders (evidence: `src/pages/Servicos/index.jsx`)
- Sign-in and registration → Navigation header: renders (evidence: `src/pages/Entrar/index.jsx`)
- Sign-in and registration → Site footer: renders (evidence: `src/pages/Entrar/index.jsx`)
- Customer appointments → Navigation header: renders (evidence: `src/pages/Clientes/index.jsx`)
- Customer appointments → Site footer: renders (evidence: `src/pages/Clientes/index.jsx`)
- Visitor or customer → Page router: navigates (evidence: `src/routes.jsx`)
- Application shell → Supabase client: checks session (evidence: `src/App.jsx`)
- Navigation header → Supabase client: checks auth (evidence: `src/components/Header/index.jsx`)
- Sign-in and registration → Supabase client: authenticates (evidence: `src/pages/Entrar/index.jsx`)
- Product catalog and cart → Supabase client: loads catalog (evidence: `README.md`)
- Services and booking → Supabase client: loads services (evidence: `README.md`)
- Services and booking → Supabase client: inserts appointment (evidence: `src/pages/Servicos/index.jsx`)
- Customer appointments → Supabase client: reads appointments (evidence: `src/pages/Clientes/index.jsx`)
- Customer appointments → Supabase client: deletes appointment (evidence: `src/pages/Clientes/index.jsx`)
- Administration panel → Supabase client: manages records (evidence: `src/pages/Administrador/index.jsx`)
- Supabase client → Supabase backend: connects to (evidence: `src/services/supabaseClient.js`)
- Visitor or customer → Product catalog and cart: browses and shops (evidence: `README.md`)
- Visitor or customer → Services and booking: books care (evidence: `README.md`)
- Visitor or customer → Sign-in and registration: signs in
- Visitor or customer → Customer appointments: views bookings
- Visitor or customer → Administration panel: manages shop (evidence: `README.md`)
