# mayle01/projeto_uninter_front_end architecture

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

- Interactive diagram: https://gitdiagram.com/mayle01/projeto_uninter_front_end
- Repository: https://github.com/mayle01/projeto_uninter_front_end

## Overview

This is a static restaurant-ordering website for Raízes do Nordeste. The main visible workflow is browsing and filtering the menu, adding products to a browser-persisted cart, then proceeding toward checkout. The file tree also indicates order tracking, loyalty, login, and staff-facing pages, but their implementations were not sampled; those branches are shown without asserted internal flows. Evidence for runtime relationships is limited to the excerpts from the two JavaScript modules.

Main entry points: [`Projeto Uninter/js/cardapio.js`](https://github.com/mayle01/projeto_uninter_front_end/blob/main/Projeto%20Uninter/js/cardapio.js) (Catalog logic), [`Projeto Uninter/js/app.js`](https://github.com/mayle01/projeto_uninter_front_end/blob/main/Projeto%20Uninter/js/app.js) (Cart state), [`Projeto Uninter/cardapio.html`](https://github.com/mayle01/projeto_uninter_front_end/blob/main/Projeto%20Uninter/cardapio.html) (Menu page), [`Projeto Uninter/carrinho.html`](https://github.com/mayle01/projeto_uninter_front_end/blob/main/Projeto%20Uninter/carrinho.html) (Cart page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shopping["Customer Ordering"]
  node_home["Home<br/>[index.html]"]
  node_menu["Menu page<br/>[cardapio.html]"]
  node_catalog["Catalog logic<br/>[cardapio.js]"]
  node_cartpage["Cart page<br/>[carrinho.html]"]
  node_checkout["Checkout page<br/>[checkout.html]"]
  node_tracking["Order tracking"]
end

subgraph group_shared["Shared Browser Logic"]
  node_cartlogic["Cart state<br/>[app.js]"]
  node_browserstore[("Browser storage")]
  node_notifications["Toast notices<br/>[app.js]"]
  node_formatting["Currency formatting<br/>[app.js]"]
  node_sitechrome["Navigation and footer<br/>[app.js]"]
  node_consent["Cookie consent<br/>[app.js]"]
end

subgraph group_operations["Account and Operations"]
  node_login["Login page<br/>[login.html]"]
  node_auth["Auth state<br/>[app.js]"]
  node_loyalty["Loyalty page<br/>[fidelidade.html]"]
  node_admin["Admin page<br/>[admin.html]"]
  node_manager["Manager page<br/>[gerente.html]"]
end

node_customer(("Customer"))

node_customer -.->|"opens"| node_home
node_customer -.->|"browses"| node_menu
node_menu -.->|"uses"| node_catalog
node_catalog -->|"adds items"| node_cartlogic
node_catalog -->|"shows notices"| node_notifications
node_catalog -->|"formats prices"| node_formatting
node_cartlogic -->|"reads and writes"| node_browserstore
node_customer -.->|"opens"| node_cartpage
node_cartpage -.->|"continues to"| node_checkout
node_customer -.->|"checks order"| node_tracking
node_customer -.->|"signs in"| node_login
node_login -.->|"uses"| node_auth
node_auth -->|"reads and writes"| node_browserstore
node_customer -.->|"visits"| node_loyalty
node_customer -.->|"staff access"| node_admin
node_customer -.->|"staff access"| node_manager
node_sitechrome -->|"reads count"| node_cartlogic
node_consent -->|"stores choice"| node_browserstore

click node_home "https://github.com/mayle01/projeto_uninter_front_end/blob/main/Projeto%20Uninter/index.html"
click node_menu "https://github.com/mayle01/projeto_uninter_front_end/blob/main/Projeto%20Uninter/cardapio.html"
click node_catalog "https://github.com/mayle01/projeto_uninter_front_end/blob/main/Projeto%20Uninter/js/cardapio.js"
click node_cartpage "https://github.com/mayle01/projeto_uninter_front_end/blob/main/Projeto%20Uninter/carrinho.html"
click node_checkout "https://github.com/mayle01/projeto_uninter_front_end/blob/main/Projeto%20Uninter/checkout.html"
click node_tracking "https://github.com/mayle01/projeto_uninter_front_end/blob/main/Projeto%20Uninter/acompanhamento.html"
click node_cartlogic "https://github.com/mayle01/projeto_uninter_front_end/blob/main/Projeto%20Uninter/js/app.js"
click node_notifications "https://github.com/mayle01/projeto_uninter_front_end/blob/main/Projeto%20Uninter/js/app.js"
click node_formatting "https://github.com/mayle01/projeto_uninter_front_end/blob/main/Projeto%20Uninter/js/app.js"
click node_sitechrome "https://github.com/mayle01/projeto_uninter_front_end/blob/main/Projeto%20Uninter/js/app.js"
click node_consent "https://github.com/mayle01/projeto_uninter_front_end/blob/main/Projeto%20Uninter/js/app.js"
click node_login "https://github.com/mayle01/projeto_uninter_front_end/blob/main/Projeto%20Uninter/login.html"
click node_auth "https://github.com/mayle01/projeto_uninter_front_end/blob/main/Projeto%20Uninter/js/app.js"
click node_loyalty "https://github.com/mayle01/projeto_uninter_front_end/blob/main/Projeto%20Uninter/fidelidade.html"
click node_admin "https://github.com/mayle01/projeto_uninter_front_end/blob/main/Projeto%20Uninter/admin.html"
click node_manager "https://github.com/mayle01/projeto_uninter_front_end/blob/main/Projeto%20Uninter/gerente.html"

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_home,node_menu,node_catalog,node_cartpage,node_checkout,node_tracking toneBlue
class node_cartlogic,node_browserstore,node_notifications,node_formatting,node_sitechrome,node_consent toneAmber
class node_login,node_auth,node_loyalty,node_admin,node_manager toneMint
class node_customer toneIndigo
```

## Components

### Customer Ordering

- [Home](https://github.com/mayle01/projeto_uninter_front_end/blob/main/Projeto%20Uninter/index.html): `Projeto Uninter/index.html`
- [Menu page](https://github.com/mayle01/projeto_uninter_front_end/blob/main/Projeto%20Uninter/cardapio.html): `Projeto Uninter/cardapio.html`
- [Catalog logic](https://github.com/mayle01/projeto_uninter_front_end/blob/main/Projeto%20Uninter/js/cardapio.js): `Projeto Uninter/js/cardapio.js`
- [Cart page](https://github.com/mayle01/projeto_uninter_front_end/blob/main/Projeto%20Uninter/carrinho.html): `Projeto Uninter/carrinho.html`
- [Checkout page](https://github.com/mayle01/projeto_uninter_front_end/blob/main/Projeto%20Uninter/checkout.html): `Projeto Uninter/checkout.html`
- [Order tracking](https://github.com/mayle01/projeto_uninter_front_end/blob/main/Projeto%20Uninter/acompanhamento.html): `Projeto Uninter/acompanhamento.html`

### Shared Browser Logic

- [Cart state](https://github.com/mayle01/projeto_uninter_front_end/blob/main/Projeto%20Uninter/js/app.js): `Projeto Uninter/js/app.js`
- **Browser storage**
- [Toast notices](https://github.com/mayle01/projeto_uninter_front_end/blob/main/Projeto%20Uninter/js/app.js): `Projeto Uninter/js/app.js`
- [Currency formatting](https://github.com/mayle01/projeto_uninter_front_end/blob/main/Projeto%20Uninter/js/app.js): `Projeto Uninter/js/app.js`
- [Navigation and footer](https://github.com/mayle01/projeto_uninter_front_end/blob/main/Projeto%20Uninter/js/app.js): `Projeto Uninter/js/app.js`
- [Cookie consent](https://github.com/mayle01/projeto_uninter_front_end/blob/main/Projeto%20Uninter/js/app.js): `Projeto Uninter/js/app.js`

### Account and Operations

- [Login page](https://github.com/mayle01/projeto_uninter_front_end/blob/main/Projeto%20Uninter/login.html): `Projeto Uninter/login.html`
- [Auth state](https://github.com/mayle01/projeto_uninter_front_end/blob/main/Projeto%20Uninter/js/app.js): `Projeto Uninter/js/app.js`
- [Loyalty page](https://github.com/mayle01/projeto_uninter_front_end/blob/main/Projeto%20Uninter/fidelidade.html): `Projeto Uninter/fidelidade.html`
- [Admin page](https://github.com/mayle01/projeto_uninter_front_end/blob/main/Projeto%20Uninter/admin.html): `Projeto Uninter/admin.html`
- [Manager page](https://github.com/mayle01/projeto_uninter_front_end/blob/main/Projeto%20Uninter/gerente.html): `Projeto Uninter/gerente.html`

### Other components

- **Customer**

## Connections

- Customer → Home: opens
- Customer → Menu page: browses
- Menu page → Catalog logic: uses
- Catalog logic → Cart state: adds items (evidence: `Projeto Uninter/js/cardapio.js`)
- Catalog logic → Toast notices: shows notices (evidence: `Projeto Uninter/js/cardapio.js`)
- Catalog logic → Currency formatting: formats prices (evidence: `Projeto Uninter/js/cardapio.js`)
- Cart state → Browser storage: reads and writes (evidence: `Projeto Uninter/js/app.js`)
- Customer → Cart page: opens
- Cart page → Checkout page: continues to
- Customer → Order tracking: checks order
- Customer → Login page: signs in
- Login page → Auth state: uses
- Auth state → Browser storage: reads and writes (evidence: `Projeto Uninter/js/app.js`)
- Customer → Loyalty page: visits
- Customer → Admin page: staff access
- Customer → Manager page: staff access
- Navigation and footer → Cart state: reads count (evidence: `Projeto Uninter/js/app.js`)
- Cookie consent → Browser storage: stores choice (evidence: `Projeto Uninter/js/app.js`)
