# ddolly518/rocket architecture

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

- Interactive diagram: https://gitdiagram.com/ddolly518/rocket
- Repository: https://github.com/ddolly518/rocket

## Overview

FixTrack is an after-sales service platform for customer authentication, AI-assisted inquiries and repair intake, and tracking conversations and repair requests. The visible client routes users through login or signup, a home hub, chat or repair chat, and history/list views; its shared Axios client sends API requests to the deployed server. The README documents server-side OpenAI integration, rate limiting, context management, streaming, and asynchronous processing, plus Redis and PostgreSQL. Server internals were not sampled, so those subsystems are represented at directory level and their internal call paths are not inferred.

Main entry points: [`chatbot-client/src/App.jsx`](https://github.com/ddolly518/rocket/blob/main/chatbot-client/src/App.jsx) (Route application), [`chatbot-client/src/api/axiosInstance.js`](https://github.com/ddolly518/rocket/blob/main/chatbot-client/src/api/axiosInstance.js) (HTTP client), [`chatbot-server/src/main/java/com/example/chatbot/controller`](https://github.com/ddolly518/rocket/tree/main/chatbot-server/src/main/java/com/example/chatbot/controller) (Spring API), [`chatbot-server/src/main/java/com/example/chatbot/gpt`](https://github.com/ddolly518/rocket/tree/main/chatbot-server/src/main/java/com/example/chatbot/gpt) (LLM orchestration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Customer client"]
  node_app["Route application<br/>[App.jsx]"]
  node_authui["Account screens"]
  node_home["Service hub<br/>[Home.jsx]"]
  node_chatui["Inquiry chat<br/>[Chat.jsx]"]
  node_repairui["Repair intake chat<br/>[Repair.jsx]"]
  node_historyui["Conversation history<br/>[Conversations.jsx]"]
  node_detailui["Conversation detail<br/>[Conversation.jsx]"]
  node_messagesui["Message history<br/>[Messages.jsx]"]
  node_repairsui["Repair list<br/>[Repairs.jsx]"]
  node_deleteui["Conversation deletion<br/>[Delete.jsx]"]
  node_api["HTTP client<br/>[axiosInstance.js]"]
end

subgraph group_server["API services"]
  node_server["Spring API"]
  node_auth["Authentication"]
  node_chat["Chat processing"]
  node_repair["Repair management"]
end

subgraph group_ai["AI assistance"]
  node_aiwork["LLM orchestration"]
  node_openai["OpenAI API"]
end

subgraph group_state["Platform state"]
  node_postgres[("PostgreSQL")]
  node_redis[("Redis")]
end

node_customer(("Customer"))

node_customer -->|"uses"| node_app
node_app -->|"routes to"| node_authui
node_app -->|"routes to"| node_home
node_app -->|"routes to"| node_chatui
node_app -->|"routes to"| node_repairui
node_app -->|"routes to"| node_historyui
node_app -->|"routes to"| node_detailui
node_app -->|"routes to"| node_messagesui
node_app -->|"routes to"| node_repairsui
node_app -->|"routes to"| node_deleteui
node_authui -->|"submits account"| node_api
node_home -->|"logs out"| node_api
node_chatui -->|"posts inquiry"| node_api
node_repairui -->|"posts repair"| node_api
node_messagesui -->|"fetches messages"| node_api
node_historyui -->|"fetches list"| node_api
node_detailui -->|"fetches detail"| node_api
node_repairsui -->|"fetches repairs"| node_api
node_deleteui -->|"requests deletion"| node_api
node_api -->|"HTTP requests"| node_server
node_server -.->|"handles account"| node_auth
node_server -.->|"handles chat"| node_chat
node_server -.->|"handles repair"| node_repair
node_chat -.->|"uses AI support"| node_aiwork
node_repair -.->|"analyzes intake"| node_aiwork
node_aiwork -.->|"calls model"| node_openai
node_chat -.->|"persists history"| node_postgres
node_repair -.->|"stores requests"| node_postgres
node_aiwork -.->|"rate limits"| node_redis

click node_app "https://github.com/ddolly518/rocket/blob/main/chatbot-client/src/App.jsx"
click node_authui "https://github.com/ddolly518/rocket/tree/main/chatbot-client/src/pages"
click node_home "https://github.com/ddolly518/rocket/blob/main/chatbot-client/src/pages/Home/Home.jsx"
click node_chatui "https://github.com/ddolly518/rocket/blob/main/chatbot-client/src/pages/Chat/Chat.jsx"
click node_repairui "https://github.com/ddolly518/rocket/blob/main/chatbot-client/src/pages/Repair/Repair.jsx"
click node_historyui "https://github.com/ddolly518/rocket/blob/main/chatbot-client/src/pages/Conversations/Conversations.jsx"
click node_detailui "https://github.com/ddolly518/rocket/blob/main/chatbot-client/src/pages/Conversation/Conversation.jsx"
click node_messagesui "https://github.com/ddolly518/rocket/blob/main/chatbot-client/src/pages/Messages/Messages.jsx"
click node_repairsui "https://github.com/ddolly518/rocket/blob/main/chatbot-client/src/pages/Repairs/Repairs.jsx"
click node_deleteui "https://github.com/ddolly518/rocket/blob/main/chatbot-client/src/pages/Delete/Delete.jsx"
click node_api "https://github.com/ddolly518/rocket/blob/main/chatbot-client/src/api/axiosInstance.js"
click node_server "https://github.com/ddolly518/rocket/tree/main/chatbot-server/src/main/java/com/example/chatbot/controller"
click node_auth "https://github.com/ddolly518/rocket/tree/main/chatbot-server/src/main/java/com/example/chatbot/service"
click node_chat "https://github.com/ddolly518/rocket/tree/main/chatbot-server/src/main/java/com/example/chatbot/service"
click node_repair "https://github.com/ddolly518/rocket/tree/main/chatbot-server/src/main/java/com/example/chatbot/service"
click node_aiwork "https://github.com/ddolly518/rocket/tree/main/chatbot-server/src/main/java/com/example/chatbot/gpt"

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_authui,node_home,node_chatui,node_repairui,node_historyui,node_detailui,node_messagesui,node_repairsui,node_deleteui,node_api toneBlue
class node_server,node_auth,node_chat,node_repair toneAmber
class node_aiwork,node_openai toneMint
class node_postgres,node_redis toneRose
class node_customer toneIndigo
```

## Components

### Customer client

- [Route application](https://github.com/ddolly518/rocket/blob/main/chatbot-client/src/App.jsx): `chatbot-client/src/App.jsx`
- [Account screens](https://github.com/ddolly518/rocket/tree/main/chatbot-client/src/pages): `chatbot-client/src/pages`
- [Service hub](https://github.com/ddolly518/rocket/blob/main/chatbot-client/src/pages/Home/Home.jsx): `chatbot-client/src/pages/Home/Home.jsx`
- [Inquiry chat](https://github.com/ddolly518/rocket/blob/main/chatbot-client/src/pages/Chat/Chat.jsx): `chatbot-client/src/pages/Chat/Chat.jsx`
- [Repair intake chat](https://github.com/ddolly518/rocket/blob/main/chatbot-client/src/pages/Repair/Repair.jsx): `chatbot-client/src/pages/Repair/Repair.jsx`
- [Conversation history](https://github.com/ddolly518/rocket/blob/main/chatbot-client/src/pages/Conversations/Conversations.jsx): `chatbot-client/src/pages/Conversations/Conversations.jsx`
- [Conversation detail](https://github.com/ddolly518/rocket/blob/main/chatbot-client/src/pages/Conversation/Conversation.jsx): `chatbot-client/src/pages/Conversation/Conversation.jsx`
- [Message history](https://github.com/ddolly518/rocket/blob/main/chatbot-client/src/pages/Messages/Messages.jsx): `chatbot-client/src/pages/Messages/Messages.jsx`
- [Repair list](https://github.com/ddolly518/rocket/blob/main/chatbot-client/src/pages/Repairs/Repairs.jsx): `chatbot-client/src/pages/Repairs/Repairs.jsx`
- [Conversation deletion](https://github.com/ddolly518/rocket/blob/main/chatbot-client/src/pages/Delete/Delete.jsx): `chatbot-client/src/pages/Delete/Delete.jsx`
- [HTTP client](https://github.com/ddolly518/rocket/blob/main/chatbot-client/src/api/axiosInstance.js): `chatbot-client/src/api/axiosInstance.js`

### API services

- [Spring API](https://github.com/ddolly518/rocket/tree/main/chatbot-server/src/main/java/com/example/chatbot/controller): `chatbot-server/src/main/java/com/example/chatbot/controller`
- [Authentication](https://github.com/ddolly518/rocket/tree/main/chatbot-server/src/main/java/com/example/chatbot/service): `chatbot-server/src/main/java/com/example/chatbot/service`
- [Chat processing](https://github.com/ddolly518/rocket/tree/main/chatbot-server/src/main/java/com/example/chatbot/service): `chatbot-server/src/main/java/com/example/chatbot/service`
- [Repair management](https://github.com/ddolly518/rocket/tree/main/chatbot-server/src/main/java/com/example/chatbot/service): `chatbot-server/src/main/java/com/example/chatbot/service`

### AI assistance

- [LLM orchestration](https://github.com/ddolly518/rocket/tree/main/chatbot-server/src/main/java/com/example/chatbot/gpt): `chatbot-server/src/main/java/com/example/chatbot/gpt`
- **OpenAI API**

### Platform state

- **PostgreSQL**
- **Redis**

### Other components

- **Customer**

## Connections

- Customer → Route application: uses
- Route application → Account screens: routes to (evidence: `chatbot-client/src/App.jsx`)
- Route application → Service hub: routes to (evidence: `chatbot-client/src/App.jsx`)
- Route application → Inquiry chat: routes to (evidence: `chatbot-client/src/App.jsx`)
- Route application → Repair intake chat: routes to (evidence: `chatbot-client/src/App.jsx`)
- Route application → Conversation history: routes to (evidence: `chatbot-client/src/App.jsx`)
- Route application → Conversation detail: routes to (evidence: `chatbot-client/src/App.jsx`)
- Route application → Message history: routes to (evidence: `chatbot-client/src/App.jsx`)
- Route application → Repair list: routes to (evidence: `chatbot-client/src/App.jsx`)
- Route application → Conversation deletion: routes to (evidence: `chatbot-client/src/App.jsx`)
- Account screens → HTTP client: submits account (evidence: `chatbot-client/src/pages/Login/Login.jsx`)
- Service hub → HTTP client: logs out (evidence: `chatbot-client/src/pages/Home/Home.jsx`)
- Inquiry chat → HTTP client: posts inquiry (evidence: `chatbot-client/src/pages/Chat/Chat.jsx`)
- Repair intake chat → HTTP client: posts repair (evidence: `chatbot-client/src/pages/Repair/Repair.jsx`)
- Message history → HTTP client: fetches messages (evidence: `chatbot-client/src/pages/Messages/Messages.jsx`)
- Conversation history → HTTP client: fetches list (evidence: `chatbot-client/src/pages/Conversations/Conversations.jsx`)
- Conversation detail → HTTP client: fetches detail (evidence: `chatbot-client/src/pages/Conversation/Conversation.jsx`)
- Repair list → HTTP client: fetches repairs (evidence: `chatbot-client/src/pages/Repairs/Repairs.jsx`)
- Conversation deletion → HTTP client: requests deletion (evidence: `chatbot-client/src/pages/Delete/Delete.jsx`)
- HTTP client → Spring API: HTTP requests (evidence: `chatbot-client/src/api/axiosInstance.js`)
- Spring API → Authentication: handles account
- Spring API → Chat processing: handles chat
- Spring API → Repair management: handles repair
- Chat processing → LLM orchestration: uses AI support
- Repair management → LLM orchestration: analyzes intake
- LLM orchestration → OpenAI API: calls model (evidence: `README.md`)
- Chat processing → PostgreSQL: persists history (evidence: `README.md`)
- Repair management → PostgreSQL: stores requests (evidence: `README.md`)
- LLM orchestration → Redis: rate limits (evidence: `README.md`)
