# elyasnajeh/blue-fullstack-training architecture

> Architecture diagram of the GitHub repository elyasnajeh/blue-fullstack-training, 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/elyasnajeh/blue-fullstack-training
- Repository: https://github.com/elyasnajeh/blue-fullstack-training

## Overview

This repository contains a Vue frontend and Laravel REST API for posts, authentication, and dynamic CMS pages, alongside a separate October CMS services plugin and a standalone responsive-site script. The documented main workflow runs from browser interactions through Vue views and API calls to Laravel persistence and responses. The graph preserves the documented post, page, and block capabilities; October CMS is shown as a separate product branch. Some subsystem links rely on README documentation because their implementation files were not sampled.

Main entry points: [`task-11-laravel-api/app/Http/Controllers/PostController.php`](https://github.com/elyasnajeh/blue-fullstack-training/blob/main/task-11-laravel-api/app/Http/Controllers/PostController.php) (Post endpoints), [`task-11-laravel-api/bootstrap/app.php`](https://github.com/elyasnajeh/blue-fullstack-training/blob/main/task-11-laravel-api/bootstrap/app.php) (Laravel API), [`task-07-vue-app/src/main.js`](https://github.com/elyasnajeh/blue-fullstack-training/blob/main/task-07-vue-app/src/main.js) (Vue application), [`task-07-vue-app/src/views`](https://github.com/elyasnajeh/blue-fullstack-training/tree/main/task-07-vue-app/src/views) (Page management views)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Vue frontend"]
  node_vueapp["Vue application<br/>[main.js]"]
  node_router["Route views<br/>[index.js]"]
  node_postviews["Post workflows"]
  node_postclient["Post API client<br/>[usePosts.js]"]
  node_authstore["Authentication state<br/>[auth.js]"]
  node_header["Site header<br/>[SiteHeader.vue]"]
  node_footer["Site footer<br/>[SiteFooter.vue]"]
  node_servicecard["Service card<br/>[ServiceCard.vue]"]
  node_pageviews["Page management views"]
  node_blockviews["Block renderers"]
end

subgraph group_api["Laravel API"]
  node_api["Laravel API<br/>[app.php]"]
  node_postcontroller["Post endpoints<br/>[PostController.php]"]
  node_postmodel[("Post records<br/>[Post.php]")]
  node_postresource["Post responses<br/>[PostResource.php]"]
  node_authcontroller["Authentication endpoints<br/>[AuthController.php]"]
  node_user[("User records<br/>[User.php]")]
end

subgraph group_content["Page content"]
  node_pagecontroller["Page endpoints<br/>[PageController.php]"]
  node_pagemodel[("CMS pages<br/>[Page.php]")]
  node_blockcontroller["Block endpoints"]
  node_blockmodel[("Content blocks<br/>[ContentBlock.php]")]
end

subgraph group_october["October CMS"]
  node_octoberapp["October CMS runtime<br/>[app.php]"]
  node_servicescomponent["Services display<br/>[Services.php]"]
  node_servicemodel[("Service records<br/>[Service.php]")]
  node_octoberadmin["CMS administration"]
end

node_visitor(("Site visitor"))
node_responsive["Responsive-site behavior<br/>[main.js]"]

node_visitor -->|"uses"| node_vueapp
node_vueapp -->|"installs router"| node_router
node_router -.->|"routes to"| node_postviews
node_postviews -.->|"loads and mutates"| node_postclient
node_postclient -->|"requests data"| node_api
node_vueapp -->|"fetches user"| node_authstore
node_visitor -->|"navigates"| node_header
node_visitor -->|"views"| node_footer
node_api -.->|"routes requests"| node_postcontroller
node_postcontroller -->|"queries and changes"| node_postmodel
node_postcontroller -->|"formats responses"| node_postresource
node_postcontroller -->|"creates for user"| node_user
node_authcontroller -.->|"authenticates"| node_user
node_visitor -->|"manages pages"| node_pageviews
node_pageviews -->|"requests page data"| node_api
node_pagecontroller -->|"reads and changes"| node_pagemodel
node_blockcontroller -->|"loads page"| node_pagemodel
node_blockcontroller -->|"updates blocks"| node_blockmodel
node_pageviews -->|"renders blocks"| node_blockviews
node_blockviews -->|"uses block data"| node_api
node_octoberapp -.->|"serves CMS"| node_servicescomponent
node_servicescomponent -->|"queries services"| node_servicemodel
node_visitor -.->|"views services"| node_servicecard

click node_vueapp "https://github.com/elyasnajeh/blue-fullstack-training/blob/main/task-07-vue-app/src/main.js"
click node_router "https://github.com/elyasnajeh/blue-fullstack-training/blob/main/task-07-vue-app/src/router/index.js"
click node_postviews "https://github.com/elyasnajeh/blue-fullstack-training/tree/main/task-07-vue-app/src/views"
click node_postclient "https://github.com/elyasnajeh/blue-fullstack-training/blob/main/task-07-vue-app/src/composable/usePosts.js"
click node_authstore "https://github.com/elyasnajeh/blue-fullstack-training/blob/main/task-07-vue-app/src/stores/auth.js"
click node_header "https://github.com/elyasnajeh/blue-fullstack-training/blob/main/task-07-vue-app/src/components/SiteHeader.vue"
click node_footer "https://github.com/elyasnajeh/blue-fullstack-training/blob/main/task-07-vue-app/src/components/SiteFooter.vue"
click node_servicecard "https://github.com/elyasnajeh/blue-fullstack-training/blob/main/task-07-vue-app/src/components/ServiceCard.vue"
click node_api "https://github.com/elyasnajeh/blue-fullstack-training/blob/main/task-11-laravel-api/bootstrap/app.php"
click node_postcontroller "https://github.com/elyasnajeh/blue-fullstack-training/blob/main/task-11-laravel-api/app/Http/Controllers/PostController.php"
click node_postmodel "https://github.com/elyasnajeh/blue-fullstack-training/blob/main/task-11-laravel-api/app/Models/Post.php"
click node_postresource "https://github.com/elyasnajeh/blue-fullstack-training/blob/main/task-11-laravel-api/app/Http/Resources/PostResource.php"
click node_authcontroller "https://github.com/elyasnajeh/blue-fullstack-training/blob/main/task-11-laravel-api/app/Http/Controllers/AuthController.php"
click node_user "https://github.com/elyasnajeh/blue-fullstack-training/blob/main/task-11-laravel-api/app/Models/User.php"
click node_pagecontroller "https://github.com/elyasnajeh/blue-fullstack-training/blob/main/task-11-laravel-api/app/Http/Controllers/PageController.php"
click node_pagemodel "https://github.com/elyasnajeh/blue-fullstack-training/blob/main/task-11-laravel-api/app/Models/Page.php"
click node_blockcontroller "https://github.com/elyasnajeh/blue-fullstack-training/blob/main/task-11-laravel-api/app/Http/Controllers/ContentBlockController.php"
click node_blockmodel "https://github.com/elyasnajeh/blue-fullstack-training/blob/main/task-11-laravel-api/app/Models/ContentBlock.php"
click node_pageviews "https://github.com/elyasnajeh/blue-fullstack-training/tree/main/task-07-vue-app/src/views"
click node_blockviews "https://github.com/elyasnajeh/blue-fullstack-training/tree/main/task-07-vue-app/src/components/blocks"
click node_octoberapp "https://github.com/elyasnajeh/blue-fullstack-training/blob/main/task-20-october-cms/bootstrap/app.php"
click node_servicescomponent "https://github.com/elyasnajeh/blue-fullstack-training/blob/main/task-20-october-cms/plugins/elyas/services/components/Services.php"
click node_servicemodel "https://github.com/elyasnajeh/blue-fullstack-training/blob/main/task-20-october-cms/plugins/elyas/services/models/Service.php"
click node_octoberadmin "https://github.com/elyasnajeh/blue-fullstack-training/tree/main/task-20-october-cms/plugins/elyas/services/controllers"
click node_responsive "https://github.com/elyasnajeh/blue-fullstack-training/blob/main/task-01-responsive-website/js/main.js"

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_vueapp,node_router,node_postviews,node_postclient,node_authstore,node_header,node_footer,node_servicecard,node_pageviews,node_blockviews toneBlue
class node_api,node_postcontroller,node_postmodel,node_postresource,node_authcontroller,node_user toneAmber
class node_pagecontroller,node_pagemodel,node_blockcontroller,node_blockmodel toneMint
class node_octoberapp,node_servicescomponent,node_servicemodel,node_octoberadmin toneRose
class node_visitor toneIndigo
class node_responsive toneTeal
```

## Components

### Vue frontend

- [Vue application](https://github.com/elyasnajeh/blue-fullstack-training/blob/main/task-07-vue-app/src/main.js): `task-07-vue-app/src/main.js`
- [Route views](https://github.com/elyasnajeh/blue-fullstack-training/blob/main/task-07-vue-app/src/router/index.js): `task-07-vue-app/src/router/index.js`
- [Post workflows](https://github.com/elyasnajeh/blue-fullstack-training/tree/main/task-07-vue-app/src/views): `task-07-vue-app/src/views`
- [Post API client](https://github.com/elyasnajeh/blue-fullstack-training/blob/main/task-07-vue-app/src/composable/usePosts.js): `task-07-vue-app/src/composable/usePosts.js`
- [Authentication state](https://github.com/elyasnajeh/blue-fullstack-training/blob/main/task-07-vue-app/src/stores/auth.js): `task-07-vue-app/src/stores/auth.js`
- [Site header](https://github.com/elyasnajeh/blue-fullstack-training/blob/main/task-07-vue-app/src/components/SiteHeader.vue): `task-07-vue-app/src/components/SiteHeader.vue`
- [Site footer](https://github.com/elyasnajeh/blue-fullstack-training/blob/main/task-07-vue-app/src/components/SiteFooter.vue): `task-07-vue-app/src/components/SiteFooter.vue`
- [Service card](https://github.com/elyasnajeh/blue-fullstack-training/blob/main/task-07-vue-app/src/components/ServiceCard.vue): `task-07-vue-app/src/components/ServiceCard.vue`
- [Page management views](https://github.com/elyasnajeh/blue-fullstack-training/tree/main/task-07-vue-app/src/views): `task-07-vue-app/src/views`
- [Block renderers](https://github.com/elyasnajeh/blue-fullstack-training/tree/main/task-07-vue-app/src/components/blocks): `task-07-vue-app/src/components/blocks`

### Laravel API

- [Laravel API](https://github.com/elyasnajeh/blue-fullstack-training/blob/main/task-11-laravel-api/bootstrap/app.php): `task-11-laravel-api/bootstrap/app.php`
- [Post endpoints](https://github.com/elyasnajeh/blue-fullstack-training/blob/main/task-11-laravel-api/app/Http/Controllers/PostController.php): `task-11-laravel-api/app/Http/Controllers/PostController.php`
- [Post records](https://github.com/elyasnajeh/blue-fullstack-training/blob/main/task-11-laravel-api/app/Models/Post.php): `task-11-laravel-api/app/Models/Post.php`
- [Post responses](https://github.com/elyasnajeh/blue-fullstack-training/blob/main/task-11-laravel-api/app/Http/Resources/PostResource.php): `task-11-laravel-api/app/Http/Resources/PostResource.php`
- [Authentication endpoints](https://github.com/elyasnajeh/blue-fullstack-training/blob/main/task-11-laravel-api/app/Http/Controllers/AuthController.php): `task-11-laravel-api/app/Http/Controllers/AuthController.php`
- [User records](https://github.com/elyasnajeh/blue-fullstack-training/blob/main/task-11-laravel-api/app/Models/User.php): `task-11-laravel-api/app/Models/User.php`

### Page content

- [Page endpoints](https://github.com/elyasnajeh/blue-fullstack-training/blob/main/task-11-laravel-api/app/Http/Controllers/PageController.php): `task-11-laravel-api/app/Http/Controllers/PageController.php`
- [CMS pages](https://github.com/elyasnajeh/blue-fullstack-training/blob/main/task-11-laravel-api/app/Models/Page.php): `task-11-laravel-api/app/Models/Page.php`
- [Block endpoints](https://github.com/elyasnajeh/blue-fullstack-training/blob/main/task-11-laravel-api/app/Http/Controllers/ContentBlockController.php): `task-11-laravel-api/app/Http/Controllers/ContentBlockController.php`
- [Content blocks](https://github.com/elyasnajeh/blue-fullstack-training/blob/main/task-11-laravel-api/app/Models/ContentBlock.php): `task-11-laravel-api/app/Models/ContentBlock.php`

### October CMS

- [October CMS runtime](https://github.com/elyasnajeh/blue-fullstack-training/blob/main/task-20-october-cms/bootstrap/app.php): `task-20-october-cms/bootstrap/app.php`
- [Services display](https://github.com/elyasnajeh/blue-fullstack-training/blob/main/task-20-october-cms/plugins/elyas/services/components/Services.php): `task-20-october-cms/plugins/elyas/services/components/Services.php`
- [Service records](https://github.com/elyasnajeh/blue-fullstack-training/blob/main/task-20-october-cms/plugins/elyas/services/models/Service.php): `task-20-october-cms/plugins/elyas/services/models/Service.php`
- [CMS administration](https://github.com/elyasnajeh/blue-fullstack-training/tree/main/task-20-october-cms/plugins/elyas/services/controllers): `task-20-october-cms/plugins/elyas/services/controllers`

### Other components

- **Site visitor**
- [Responsive-site behavior](https://github.com/elyasnajeh/blue-fullstack-training/blob/main/task-01-responsive-website/js/main.js): `task-01-responsive-website/js/main.js`

## Connections

- Site visitor → Vue application: uses
- Vue application → Route views: installs router (evidence: `task-07-vue-app/src/main.js`)
- Route views → Post workflows: routes to
- Post workflows → Post API client: loads and mutates
- Post API client → Laravel API: requests data
- Vue application → Authentication state: fetches user (evidence: `task-07-vue-app/src/main.js`)
- Site visitor → Site header: navigates
- Site visitor → Site footer: views
- Laravel API → Post endpoints: routes requests
- Post endpoints → Post records: queries and changes (evidence: `task-11-laravel-api/app/Http/Controllers/PostController.php`)
- Post endpoints → Post responses: formats responses (evidence: `task-11-laravel-api/app/Http/Controllers/PostController.php`)
- Post endpoints → User records: creates for user (evidence: `task-11-laravel-api/app/Http/Controllers/PostController.php`)
- Authentication endpoints → User records: authenticates
- Site visitor → Page management views: manages pages
- Page management views → Laravel API: requests page data
- Page endpoints → CMS pages: reads and changes (evidence: `task-11-laravel-api/app/Http/Controllers/PageController.php`)
- Block endpoints → CMS pages: loads page (evidence: `task-11-laravel-api/app/Http/Controllers/ContentBlockController.php`)
- Block endpoints → Content blocks: updates blocks (evidence: `task-11-laravel-api/app/Http/Controllers/ContentBlockController.php`)
- Page management views → Block renderers: renders blocks
- Block renderers → Laravel API: uses block data
- October CMS runtime → Services display: serves CMS
- Services display → Service records: queries services (evidence: `task-20-october-cms/plugins/elyas/services/components/Services.php`)
- Site visitor → Service card: views services
