# erickcor24/dawproyect architecture

> Architecture diagram of the GitHub repository erickcor24/dawproyect, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-05-20). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/erickcor24/dawproyect
- Repository: https://github.com/erickcor24/dawproyect

## Overview

##### Project type and purpose
- From the README and file tree, this is a full-stack “Post-Sales Service and Customer Support Portal.” The delivered code is purely front-end (HTML + JS + CSS), but the described features (ticket registration, notifications, history, company responses) imply a back-end API and database service.
- The user-facing side is a Single Page / multi-page application that invokes REST endpoints. It is intended to let customers submit support, warranty or return requests and let company staff manage them.

##### File structure
- Top level: a set of HTML pages (index.html, chat.html, contact.html, etc.) that each load JavaScript modules from the js/ folder and styles from styles/style.css.
- js/ contains one file per “view” or interaction: login.js, chat.js, ReturnRequest.js, tickets-history-clients.js, etc.
- No server code is present, so the back-end is external (to be represented as an API layer).
- Static assets (HTML/JS/CSS) will be served by a web server (e.g., Nginx, S3+CloudFront).

##### README for additional insights
- Describes core features: registering support/warranty/return requests, tracking status, notifications, history of interactions.

## Diagram (Mermaid)

```mermaid
flowchart TB
    classDef frontend fill:#cce5ff,stroke:#004085,color:#004085
    classDef backend fill:#d4edda,stroke:#155724,color:#155724
    classDef data fill:#fff3cd,stroke:#856404,color:#856404
    classDef external fill:#f5c6cb,stroke:#721c24,color:#721c24

    Browser["Client Browser"]:::frontend
    StaticContent["Static Content (CDN/Web Server)"]:::frontend
    API["API Server<br/>(/api/login, /api/requests, /api/returns, /api/chat, /api/history)"]:::backend
    Auth["Authentication Service<br/>(JWT/Session)"]:::backend
    DB["Database<br/>(Users, Tickets, Returns, Messages)"]:::data
    Notification["Notification Service<br/>(Email, SMS, Push)"]:::external

    subgraph "Static Content (CDN/Web Server)"
        subgraph "HTML Pages"
            I_index["Home: index.html"] 
            I_login["Login: login.html"]
            I_chat["Chat Interface: chat.html"]
            I_contact["Contact: contact.html"]
            I_contactform["Contact Form: contact-form.html"]
            I_faq["FAQ: faq.html"]
            I_returnreq["Return Request: return-request.html"]
            I_returns["Returns Overview: returns.html"]
            I_history["Ticket History: client-tickets.html"]
            I_evaluation["Evaluation Form: evaluation.html"]
        end
        subgraph "JS Modules"
            J_index["Home Logic: js/index.js"]
            J_login["Auth Logic: js/login.js"]
            J_chat["Chat Logic: js/chat.js"]
            J_contactval["Contact Validation: js/contactFormValidation.js"]
            J_faq["FAQ Interaction: js/FaqInteraction.js"]
            J_returnov["Return Overview: js/Return.js"]
            J_returnreq["Return Submission: js/ReturnRequest.js"]
            J_history["Ticket History: js/tickets-history-clients.js"]
            J_eval["Evaluation Logic: js/evaluationForm.js"]
        end
        CSS["styles/style.css"]
    end

    Browser -->|"loads assets"| StaticContent
    Browser -->|"AJAX/Fetch calls"| API
    API -->|"verifies token"| Auth
    API -->|"CRUD operations"| DB
    API -->|"publishes events"| Notification
    Notification -->|"sends notifications"| Browser

    click I_index "https://github.com/erickcor24/dawproyect/blob/main/index.html"
    click I_login "https://github.com/erickcor24/dawproyect/blob/main/login.html"
    click I_chat "https://github.com/erickcor24/dawproyect/blob/main/chat.html"
    click I_contact "https://github.com/erickcor24/dawproyect/blob/main/contact.html"
    click I_contactform "https://github.com/erickcor24/dawproyect/blob/main/contact-form.html"
    click I_faq "https://github.com/erickcor24/dawproyect/blob/main/faq.html"
    click I_returnreq "https://github.com/erickcor24/dawproyect/blob/main/return-request.html"
    click I_returns "https://github.com/erickcor24/dawproyect/blob/main/returns.html"
    click I_history "https://github.com/erickcor24/dawproyect/blob/main/client-tickets.html"
    click I_evaluation "https://github.com/erickcor24/dawproyect/blob/main/evaluation.html"
    click J_index "https://github.com/erickcor24/dawproyect/blob/main/js/index.js"
    click J_login "https://github.com/erickcor24/dawproyect/blob/main/js/login.js"
    click J_chat "https://github.com/erickcor24/dawproyect/blob/main/js/chat.js"
    click J_contactval "https://github.com/erickcor24/dawproyect/blob/main/js/contactFormValidation.js"
    click J_faq "https://github.com/erickcor24/dawproyect/blob/main/js/FaqInteraction.js"
    click J_returnov "https://github.com/erickcor24/dawproyect/blob/main/js/Return.js"
    click J_returnreq "https://github.com/erickcor24/dawproyect/blob/main/js/ReturnRequest.js"
    click J_history "https://github.com/erickcor24/dawproyect/blob/main/js/tickets-history-clients.js"
    click J_eval "https://github.com/erickcor24/dawproyect/blob/main/js/evaluationForm.js"
    click CSS "https://github.com/erickcor24/dawproyect/blob/main/styles/style.css"
```
