# chrisminnick/aiaio-fd architecture

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

- Interactive diagram: https://gitdiagram.com/chrisminnick/aiaio-fd
- Repository: https://github.com/chrisminnick/aiaio-fd

## Overview

##### Project Type Analysis
This is an educational repository containing multiple sub-projects across different AI and programming concepts, organized by book chapters. The project contains:
- Web applications (Django-based)
- JavaScript implementations
- Python AI/ML implementations
- Jupyter notebooks for educational content

##### Main Components

A. Book 06 Section:
1. Chapter 01 (Web Fundamentals)
- HTML/JavaScript implementations
2. Chapter 02 (Django Web Application)
- Django project "ailarious"
- Web server components
3. Chapter 03 (Chatbot Implementation)
- Python-based chatbot system
4. Chapter 04 (Tic-Tac-Toe Game)
- Client-side implementation
- Server-side implementation

B. Book 08 Section:
- Jupyter Notebooks for AI/ML concepts
- Matrix Math and Optimization
- Linear Regression
- Neural Networks

- Top Level: Repository (aiaio-fd)
- Book 06 (Implementation Projects)
- Web Components
- Django Application
- Chatbot System
- Tic-Tac-Toe Game
- Book 08 (Educational Notebooks)
- ML/AI Concepts

##### Specific Component Details

For the Django Application (Chapter 02):
**Django Project (ailarious)**
- Settings & Configuration
- URL Routing
- Views
- Models
- Database (SQLite)

For the Tic-Tac-Toe Implementation (Chapter 04):
**Tic-Tac-Toe Application**
- Frontend (HTML/CSS/JS)
- Backend (Node.js Server)

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph Legend
        A[Component]:::component --- B[Dependency]
        C[(Database)]:::database
        D[("API/Server")]:::api
        E[["Web Component"]]:::web
        F[("ML/AI Component")]:::ml
    end

    Root["AI All-In-One Repository"]:::root

    subgraph Book06["Book 06 - Implementation Projects"]
        subgraph Ch01["Chapter 01 - Web Fundamentals"]
            HTML["HTML Implementation"]:::web
            JS1["JavaScript Core"]:::web
            JS2["JavaScript Advanced"]:::web
        end

        subgraph Ch02["Chapter 02 - Django Application"]
            Django["Django Project"]:::backend
            Settings["Settings & Config"]:::config
            URLs["URL Routing"]:::backend
            Views["Views"]:::backend
            Models["Models"]:::backend
            DB[(SQLite Database)]:::database
        end

        subgraph Ch03["Chapter 03 - Chatbot"]
            ChatMain["Chatbot Core"]:::backend
            ChatDemo["Demo Application"]:::backend
            ChatConfig["Configuration"]:::config
        end

        subgraph Ch04["Chapter 04 - Tic-Tac-Toe"]
            TTTClient["Client Application"]:::web
            TTTServer[("Game Server")]:::api
            TTTUI["Frontend UI"]:::web
            TTTLogic["Game Logic"]:::web
        end
    end

    subgraph Book08["Book 08 - ML/AI Education"]
        Matrix[("Matrix Math & Optimization")]:::ml
        Linear[("Linear Regression")]:::ml
        Neural[("Neural Networks")]:::ml
    end

    %% Relationships
    Django --> Settings
    Django --> URLs
    Django --> Views
    Django --> Models
    Models --> DB
    ChatMain --> ChatConfig
    ChatDemo --> ChatMain
    TTTClient --> TTTServer
    TTTUI --> TTTLogic
    TTTLogic --> TTTServer

    %% Click Events
    click HTML "https://github.com/chrisminnick/aiaio-fd/blob/main/Book06/chapter01/fg0106.html"
    click JS1 "https://github.com/chrisminnick/aiaio-fd/blob/main/Book06/chapter01/fg0115.js"
    click JS2 "https://github.com/chrisminnick/aiaio-fd/blob/main/Book06/chapter01/fg0119.js"
    click Django "https://github.com/chrisminnick/aiaio-fd/tree/main/Book06/chapter02/ailarious/"
    click Settings "https://github.com/chrisminnick/aiaio-fd/blob/main/Book06/chapter02/ailarious/ailarious/settings.py"
    click URLs "https://github.com/chrisminnick/aiaio-fd/blob/main/Book06/chapter02/ailarious/ailarious/urls.py"
    click Views "https://github.com/chrisminnick/aiaio-fd/blob/main/Book06/chapter02/ailarious/ailariouscom/views.py"
    click Models "https://github.com/chrisminnick/aiaio-fd/blob/main/Book06/chapter02/ailarious/ailariouscom/models.py"
    click DB "https://github.com/chrisminnick/aiaio-fd/blob/main/Book06/chapter02/ailarious/db.sqlite3"
    click ChatMain "https://github.com/chrisminnick/aiaio-fd/blob/main/Book06/chapter03/chatbot.py"
    click ChatDemo "https://github.com/chrisminnick/aiaio-fd/blob/main/Book06/chapter03/chatbot_demo.py"
    click ChatConfig "https://github.com/chrisminnick/aiaio-fd/blob/main/Book06/chapter03/config.py"
    click TTTClient "https://github.com/chrisminnick/aiaio-fd/tree/main/Book06/chapter04/tic-tac-toe-client/"
    click TTTServer "https://github.com/chrisminnick/aiaio-fd/blob/main/Book06/chapter04/tic-tac-toe-server/server.js"
    click TTTUI "https://github.com/chrisminnick/aiaio-fd/blob/main/Book06/chapter04/tic-tac-toe-client/index.html"
    click TTTLogic "https://github.com/chrisminnick/aiaio-fd/blob/main/Book06/chapter04/tic-tac-toe-client/script.js"
    click Matrix "https://github.com/chrisminnick/aiaio-fd/blob/main/Book08/AIAIO4D_0803_Reviewing_Matrix_Math_and_Optimization.ipynb"
    click Linear "https://github.com/chrisminnick/aiaio-fd/blob/main/Book08/AIAIO4D_0804_Laying_Linear_Regression_Foundations.ipynb"
    click Neural "https://github.com/chrisminnick/aiaio-fd/blob/main/Book08/AIAIO4D_0806_NN_From_Scratch.ipynb"

    %% Styles
    classDef root fill:#f9f,stroke:#333,stroke-width:4px
    classDef web fill:#add8e6,stroke:#333
    classDef backend fill:#90EE90,stroke:#333
    classDef api fill:#FFA500,stroke:#333
    classDef database fill:#f0f0f0,stroke:#333
    classDef config fill:#d3d3d3,stroke:#333
    classDef ml fill:#DDA0DD,stroke:#333
    classDef component fill:#fff,stroke:#333
    class Legend component
```
