# selvi-lab/titan-watch-frontend architecture

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

- Interactive diagram: https://gitdiagram.com/selvi-lab/titan-watch-frontend
- Repository: https://github.com/selvi-lab/titan-watch-frontend

## Overview

Titan Watch is a React/Flask/MySQL watch-shopping application with customer browsing and checkout plus an admin area for product, coupon, and purchase management. The documented customer journey runs from browsing to purchase confirmation; the admin journey covers login and management tasks. The README documents the stack, API capabilities, and project paths, but no source excerpts were provided, so component-level calls beyond those documented are not inferred.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_customer["Customer Storefront"]
  node_home["Home Page"]
  node_catalog["Product Catalog"]
  node_product_detail["Product Details"]
  node_checkout["Checkout"]
  node_storefront_app["React Application"]
end

subgraph group_admin["Admin Management"]
  node_admin_login["Admin Login"]
  node_admin_panel["Admin Panel"]
end

subgraph group_backend["Backend and Data"]
  node_api["Flask REST API"]
  node_products["Product Management"]
  node_categories["Category Listing"]
  node_coupon["Coupon Validation"]
  node_purchases["Purchase Records"]
  node_admin_auth["Admin Authentication"]
  node_mysql[("MySQL Database")]
end

node_shopper(("Customer"))
node_admin_user(("Admin"))

node_shopper -->|"browses"| node_home
node_shopper -->|"filters products"| node_catalog
node_shopper -->|"views details"| node_product_detail
node_shopper -->|"enters details"| node_checkout
node_storefront_app -->|"uses REST API"| node_api
node_api -->|"uses database"| node_mysql
node_api -->|"serves product routes"| node_products
node_api -->|"serves categories"| node_categories
node_checkout -->|"submits guess"| node_coupon
node_checkout -->|"creates purchase"| node_purchases
node_admin_user -->|"signs in"| node_admin_login
node_admin_login -->|"submits credentials"| node_admin_auth
node_admin_user -->|"manages store"| node_admin_panel
node_admin_panel -->|"manages products"| node_products
node_admin_panel -->|"views coupon"| node_coupon
node_admin_panel -->|"reviews history"| node_purchases

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_catalog,node_product_detail,node_checkout,node_storefront_app toneBlue
class node_admin_login,node_admin_panel toneAmber
class node_api,node_products,node_categories,node_coupon,node_purchases,node_admin_auth,node_mysql toneMint
class node_shopper,node_admin_user toneIndigo
```

## Components

### Customer Storefront

- **Home Page**
- **Product Catalog**
- **Product Details**
- **Checkout**
- **React Application**

### Admin Management

- **Admin Login**
- **Admin Panel**

### Backend and Data

- **Flask REST API**
- **Product Management**
- **Category Listing**
- **Coupon Validation**
- **Purchase Records**
- **Admin Authentication**
- **MySQL Database**

### Other components

- **Customer**
- **Admin**

## Connections

- Customer → Home Page: browses (evidence: `README.md`)
- Customer → Product Catalog: filters products (evidence: `README.md`)
- Customer → Product Details: views details (evidence: `README.md`)
- Customer → Checkout: enters details (evidence: `README.md`)
- React Application → Flask REST API: uses REST API (evidence: `README.md`)
- Flask REST API → MySQL Database: uses database (evidence: `README.md`)
- Flask REST API → Product Management: serves product routes (evidence: `README.md`)
- Flask REST API → Category Listing: serves categories (evidence: `README.md`)
- Checkout → Coupon Validation: submits guess (evidence: `README.md`)
- Checkout → Purchase Records: creates purchase (evidence: `README.md`)
- Admin → Admin Login: signs in (evidence: `README.md`)
- Admin Login → Admin Authentication: submits credentials (evidence: `README.md`)
- Admin → Admin Panel: manages store (evidence: `README.md`)
- Admin Panel → Product Management: manages products (evidence: `README.md`)
- Admin Panel → Coupon Validation: views coupon (evidence: `README.md`)
- Admin Panel → Purchase Records: reviews history (evidence: `README.md`)
