# omerabm/do180-apps architecture

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

- Interactive diagram: https://gitdiagram.com/omerabm/do180-apps
- Repository: https://github.com/omerabm/do180-apps

## Overview

##### Project type and purpose
- This repository, “DO180-apps,” is a catalog of independent sample applications used in the DO180 course.
- Each top-level folder (e.g., example, nodejs-app, nodejs-helloworld, php-helloworld, temps, todoapp) is a standalone demo illustrating a particular stack or feature set.

##### File structure
- Top-level directories = individual samples.
- example/
- nodejs-app/ (Express server.js, package.json)
- nodejs-helloworld/ (minimal “hello world” Node.js)
- php-helloworld/
- temps/ (PHP sample)
- todoapp/ (three implementations: html5, nodejs, nodejs_api)
- Within `todoapp/`:
- html5/ — pure front-end (static assets, CSS, HTML, JS)
- nodejs/ — full-stack Express app (controllers/, models/, public assets)
- nodejs_api/ — headless API (controllers/, models/) with separate front-end assumed
- Recognize patterns: MVC in NodeJS samples, static SPA in html5.

##### README
- Minimal description: “DO180 Repository for Sample Applications.”
- Confirms this is a multi-demo repo, not a single cohesive product.

##### Detail without overthinking
- For each sample, list every folder or module that plays an architectural role.
- MVC directories, static vs dynamic parts, and how the user or external systems connect.

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Top-level DO180 Sample Apps
    subgraph "DO180 Sample Apps"
        direction TB
        Example["Example Sample"]:::demo
        NodejsApp["Node.js Express App"]:::backend
        HelloWorld["Node.js Hello World"]:::backend
        PHPHW["PHP Hello World"]:::backend
        PHPTemps["PHP Temps Sample"]:::backend
        TodoHTML5["To-Do App HTML5"]:::frontend
        TodoMVC["To-Do App Node.js MVC"]:::backend
        TodoAPI["To-Do App Node.js API"]:::backend
    end

    %% Drill-down for To-Do App Node.js MVC
    subgraph "To-Do App Node.js MVC Detail"
        direction TB
        Browser["Browser UI"]:::frontend
        Server["Express Server"]:::backend
        Controllers["Item Controllers"]:::backend
        Models["Item Models"]:::backend
        Public["Public Assets"]:::frontend
        DB["Data Store"]:::database
        Scripts["Build/Run Scripts"]:::scripts
    end

    %% Connections Top-level to Detailed
    TodoMVC -->|"drill into"| Browser

    %% MVC Flow
    Browser -->|"HTTP Requests"| Server
    Server -->|"calls"| Controllers
    Controllers -->|"uses"| Models
    Models -->|"reads/writes"| DB
    Server -->|"serves"| Public
    Scripts -->|"run"| Server

    %% Click Events for Component Mapping
    click Example "https://github.com/omerabm/do180-apps/tree/master/example/"
    click NodejsApp "https://github.com/omerabm/do180-apps/blob/master/nodejs-app/server.js"
    click HelloWorld "https://github.com/omerabm/do180-apps/blob/master/nodejs-helloworld/app.js"
    click PHPHW "https://github.com/omerabm/do180-apps/blob/master/php-helloworld/index.php"
    click PHPTemps "https://github.com/omerabm/do180-apps/blob/master/temps/index.php"
    click TodoHTML5 "https://github.com/omerabm/do180-apps/blob/master/todoapp/html5/compile.sh"
    click TodoHTML5 "https://github.com/omerabm/do180-apps/blob/master/todoapp/html5/run.sh"
    click TodoHTML5 "https://github.com/omerabm/do180-apps/blob/master/todoapp/html5/src/css/style.css"
    click TodoHTML5 "https://github.com/omerabm/do180-apps/blob/master/todoapp/html5/src/index.html"
    click TodoHTML5 "https://github.com/omerabm/do180-apps/blob/master/todoapp/html5/src/hello.html"
    click TodoHTML5 "https://github.com/omerabm/do180-apps/blob/master/todoapp/html5/src/script/item.js"
    click TodoHTML5 "https://github.com/omerabm/do180-apps/tree/master/todoapp/html5/src/lib/dependencies/"
    click TodoMVC "https://github.com/omerabm/do180-apps/blob/master/todoapp/nodejs/app.js"
    click TodoMVC "https://github.com/omerabm/do180-apps/blob/master/todoapp/nodejs/compile.sh"
    click TodoMVC "https://github.com/omerabm/do180-apps/blob/master/todoapp/nodejs/run.sh"
    click TodoMVC "https://github.com/omerabm/do180-apps/blob/master/todoapp/nodejs/package.json"
    click Controllers "https://github.com/omerabm/do180-apps/blob/master/todoapp/nodejs/controllers/items.js"
    click Models "https://github.com/omerabm/do180-apps/blob/master/todoapp/nodejs/models/db.js"
    click Models "https://github.com/omerabm/do180-apps/blob/master/todoapp/nodejs/models/items.js"
    click Public "https://github.com/omerabm/do180-apps/blob/master/todoapp/nodejs/todo/index.html"
    click Public "https://github.com/omerabm/do180-apps/blob/master/todoapp/nodejs/todo/hello.html"
    click Public "https://github.com/omerabm/do180-apps/blob/master/todoapp/nodejs/todo/css/style.css"
    click Public "https://github.com/omerabm/do180-apps/blob/master/todoapp/nodejs/todo/script/item.js"
    click Public "https://github.com/omerabm/do180-apps/tree/master/todoapp/nodejs/todo/lib/dependencies/"
    click TodoAPI "https://github.com/omerabm/do180-apps/blob/master/todoapp/nodejs_api/app.js"
    click TodoAPI "https://github.com/omerabm/do180-apps/blob/master/todoapp/nodejs_api/compile.sh"
    click TodoAPI "https://github.com/omerabm/do180-apps/blob/master/todoapp/nodejs_api/run.sh"
    click TodoAPI "https://github.com/omerabm/do180-apps/blob/master/todoapp/nodejs_api/package.json"
    click TodoAPI "https://github.com/omerabm/do180-apps/blob/master/todoapp/nodejs_api/controllers/items.js"
    click TodoAPI "https://github.com/omerabm/do180-apps/blob/master/todoapp/nodejs_api/controllers/serverinfo.js"
    click TodoAPI "https://github.com/omerabm/do180-apps/blob/master/todoapp/nodejs_api/models/db.js"
    click TodoAPI "https://github.com/omerabm/do180-apps/blob/master/todoapp/nodejs_api/models/items.js"

    %% Styles
    classDef frontend fill:#e3f7d5,stroke:#2d7a2d,stroke-width:1px
    classDef backend fill:#d5e3f7,stroke:#2d4e7a,stroke-width:1px
    classDef database fill:#f7e3d5,stroke:#7a4e2d,stroke-width:1px,shape:cylinder
    classDef scripts fill:#f7f1d5,stroke:#7a7a2d,stroke-width:1px
    classDef demo fill:#f0f0f0,stroke:#888,stroke-width:1px
```
