# phppoets-itsolutions/minible-app architecture

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

- Interactive diagram: https://gitdiagram.com/phppoets-itsolutions/minible-app
- Repository: https://github.com/phppoets-itsolutions/minible-app

## Overview

Minible is a React admin dashboard template: users enter through routed pages, protected routes apply authentication checks, and authenticated pages render inside configurable dashboard layouts. Its major feature areas include commerce, calendar, chat, contacts, invoices, email, analytics, maps, forms, and UI demonstrations. Commerce also has Redux/Saga actions and a fake Axios backend backed by sample data. The README only documents Create React App setup, not product behavior; feature relationships below are limited to routes, imports, and calls visible in the supplied excerpts or source index.

Main entry points: [`src/routes/allRoutes.js`](https://github.com/phppoets-itsolutions/minible-app/blob/main/src/routes/allRoutes.js) (Route registry), [`src/App.js`](https://github.com/phppoets-itsolutions/minible-app/blob/main/src/App.js) (Application router), [`src/store/e-commerce/saga.js`](https://github.com/phppoets-itsolutions/minible-app/blob/main/src/store/e-commerce/saga.js) (Commerce saga), [`src/components/VerticalLayout/index.js`](https://github.com/phppoets-itsolutions/minible-app/blob/main/src/components/VerticalLayout/index.js) (Dashboard layouts)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_routing["Routing and layouts"]
  node_app["Application router<br/>[App.js]"]
  node_routes["Route registry<br/>[allRoutes.js]"]
  node_auth["Route guard<br/>[Authmiddleware.js]"]
  node_layouts["Dashboard layouts<br/>[index.js]"]
  node_settings["Layout settings<br/>[Rightbar.js]"]
  node_breadcrumb["Page breadcrumb<br/>[Breadcrumb.js]"]
end

subgraph group_work["Work management"]
  node_calendar["Calendar<br/>[index.js]"]
  node_chat["Chat<br/>[Chat.js]"]
  node_contacts["Contacts<br/>[contacts-list.js]"]
  node_invoices["Invoices<br/>[invoices-list.js]"]
  node_email["Email<br/>[email-inbox.js]"]
end

subgraph group_commerce["Commerce"]
  node_commercepages["Commerce pages"]
  node_checkout["Checkout"]
  node_productdetail["Product details"]
  node_ecomdata["Commerce sample data<br/>[ecommerce.js]"]
end

subgraph group_showcase["Dashboard showcase"]
  node_dashboard["Dashboard analytics<br/>[index.js]"]
  node_charts["Chart examples"]
  node_forms["Form examples"]
  node_ui["UI examples"]
  node_maps["Map examples"]
  node_icons["Icon examples"]
end

subgraph group_platform["State and backend"]
  node_store["Redux store<br/>[index.js]"]
  node_ecomactions["Commerce actions<br/>[actions.js]"]
  node_ecomsaga["Commerce saga<br/>[saga.js]"]
  node_fakebackend["Mock API backend<br/>[fakeBackend.js]"]
  node_urlhelper["API URL helpers<br/>[url_helper.js]"]
end

node_user(("Dashboard user"))

node_user -->|"opens"| node_app
node_app -->|"loads routes"| node_routes
node_app -->|"routes through"| node_auth
node_app -->|"selects layout"| node_layouts
node_routes -->|"routes to"| node_dashboard
node_routes -->|"routes to"| node_calendar
node_routes -->|"routes to"| node_chat
node_routes -->|"routes to"| node_commercepages
node_routes -->|"routes to"| node_checkout
node_routes -->|"routes to"| node_productdetail
node_routes -->|"routes to"| node_email
node_auth -->|"wraps pages"| node_layouts
node_layouts -->|"renders"| node_settings
node_settings -->|"dispatches settings"| node_store
node_checkout -->|"reads sample data"| node_ecomdata
node_store -->|"runs sagas"| node_ecomsaga
node_ecomsaga -->|"dispatches actions"| node_ecomactions
node_ecomsaga -->|"calls API helper"| node_fakebackend
node_fakebackend -->|"registers mock routes"| node_urlhelper
node_routes -->|"routes to"| node_contacts
node_routes -->|"routes to"| node_invoices
node_routes -->|"routes to"| node_charts
node_routes -->|"routes to"| node_forms
node_routes -->|"routes to"| node_ui
node_routes -->|"routes to"| node_maps
node_routes -->|"routes to"| node_icons

click node_app "https://github.com/phppoets-itsolutions/minible-app/blob/main/src/App.js"
click node_routes "https://github.com/phppoets-itsolutions/minible-app/blob/main/src/routes/allRoutes.js"
click node_auth "https://github.com/phppoets-itsolutions/minible-app/blob/main/src/routes/middleware/Authmiddleware.js"
click node_layouts "https://github.com/phppoets-itsolutions/minible-app/blob/main/src/components/VerticalLayout/index.js"
click node_settings "https://github.com/phppoets-itsolutions/minible-app/blob/main/src/components/CommonForBoth/Rightbar.js"
click node_dashboard "https://github.com/phppoets-itsolutions/minible-app/blob/main/src/pages/Dashboard/index.js"
click node_calendar "https://github.com/phppoets-itsolutions/minible-app/blob/main/src/pages/Calendar/index.js"
click node_chat "https://github.com/phppoets-itsolutions/minible-app/blob/main/src/pages/Chat/Chat.js"
click node_contacts "https://github.com/phppoets-itsolutions/minible-app/blob/main/src/pages/Contacts/ContactList/contacts-list.js"
click node_invoices "https://github.com/phppoets-itsolutions/minible-app/blob/main/src/pages/Invoices/invoices-list.js"
click node_email "https://github.com/phppoets-itsolutions/minible-app/blob/main/src/pages/Email/email-inbox.js"
click node_commercepages "https://github.com/phppoets-itsolutions/minible-app/tree/main/src/pages/Ecommerce"
click node_checkout "https://github.com/phppoets-itsolutions/minible-app/blob/main/src/pages/Ecommerce/EcommerceCheckout.js"
click node_productdetail "https://github.com/phppoets-itsolutions/minible-app/blob/main/src/pages/Ecommerce/EcommerceProducts/EcommerceProductDetail.js"
click node_ecomdata "https://github.com/phppoets-itsolutions/minible-app/blob/main/src/common/data/ecommerce.js"
click node_charts "https://github.com/phppoets-itsolutions/minible-app/tree/main/src/pages/Charts"
click node_forms "https://github.com/phppoets-itsolutions/minible-app/tree/main/src/pages/Forms"
click node_ui "https://github.com/phppoets-itsolutions/minible-app/tree/main/src/pages/Ui"
click node_maps "https://github.com/phppoets-itsolutions/minible-app/tree/main/src/pages/Maps"
click node_icons "https://github.com/phppoets-itsolutions/minible-app/tree/main/src/pages/Icons"
click node_store "https://github.com/phppoets-itsolutions/minible-app/blob/main/src/store/index.js"
click node_ecomactions "https://github.com/phppoets-itsolutions/minible-app/blob/main/src/store/e-commerce/actions.js"
click node_ecomsaga "https://github.com/phppoets-itsolutions/minible-app/blob/main/src/store/e-commerce/saga.js"
click node_fakebackend "https://github.com/phppoets-itsolutions/minible-app/blob/main/src/helpers/AuthType/fakeBackend.js"
click node_urlhelper "https://github.com/phppoets-itsolutions/minible-app/blob/main/src/helpers/url_helper.js"
click node_breadcrumb "https://github.com/phppoets-itsolutions/minible-app/blob/main/src/components/Common/Breadcrumb.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_app,node_routes,node_auth,node_layouts,node_settings,node_breadcrumb,node_user toneBlue
class node_calendar,node_chat,node_contacts,node_invoices,node_email toneAmber
class node_commercepages,node_checkout,node_productdetail,node_ecomdata toneMint
class node_dashboard,node_charts,node_forms,node_ui,node_maps,node_icons toneRose
class node_store,node_ecomactions,node_ecomsaga,node_fakebackend,node_urlhelper toneIndigo
```

## Components

### Routing and layouts

- [Application router](https://github.com/phppoets-itsolutions/minible-app/blob/main/src/App.js): `src/App.js`
- [Route registry](https://github.com/phppoets-itsolutions/minible-app/blob/main/src/routes/allRoutes.js): `src/routes/allRoutes.js`
- [Route guard](https://github.com/phppoets-itsolutions/minible-app/blob/main/src/routes/middleware/Authmiddleware.js): `src/routes/middleware/Authmiddleware.js`
- [Dashboard layouts](https://github.com/phppoets-itsolutions/minible-app/blob/main/src/components/VerticalLayout/index.js): `src/components/VerticalLayout/index.js`
- [Layout settings](https://github.com/phppoets-itsolutions/minible-app/blob/main/src/components/CommonForBoth/Rightbar.js): `src/components/CommonForBoth/Rightbar.js`
- [Page breadcrumb](https://github.com/phppoets-itsolutions/minible-app/blob/main/src/components/Common/Breadcrumb.js): `src/components/Common/Breadcrumb.js`

### Work management

- [Calendar](https://github.com/phppoets-itsolutions/minible-app/blob/main/src/pages/Calendar/index.js): `src/pages/Calendar/index.js`
- [Chat](https://github.com/phppoets-itsolutions/minible-app/blob/main/src/pages/Chat/Chat.js): `src/pages/Chat/Chat.js`
- [Contacts](https://github.com/phppoets-itsolutions/minible-app/blob/main/src/pages/Contacts/ContactList/contacts-list.js): `src/pages/Contacts/ContactList/contacts-list.js`
- [Invoices](https://github.com/phppoets-itsolutions/minible-app/blob/main/src/pages/Invoices/invoices-list.js): `src/pages/Invoices/invoices-list.js`
- [Email](https://github.com/phppoets-itsolutions/minible-app/blob/main/src/pages/Email/email-inbox.js): `src/pages/Email/email-inbox.js`

### Commerce

- [Commerce pages](https://github.com/phppoets-itsolutions/minible-app/tree/main/src/pages/Ecommerce): `src/pages/Ecommerce`
- [Checkout](https://github.com/phppoets-itsolutions/minible-app/blob/main/src/pages/Ecommerce/EcommerceCheckout.js): `src/pages/Ecommerce/EcommerceCheckout.js`
- [Product details](https://github.com/phppoets-itsolutions/minible-app/blob/main/src/pages/Ecommerce/EcommerceProducts/EcommerceProductDetail.js): `src/pages/Ecommerce/EcommerceProducts/EcommerceProductDetail.js`
- [Commerce sample data](https://github.com/phppoets-itsolutions/minible-app/blob/main/src/common/data/ecommerce.js): `src/common/data/ecommerce.js`

### Dashboard showcase

- [Dashboard analytics](https://github.com/phppoets-itsolutions/minible-app/blob/main/src/pages/Dashboard/index.js): `src/pages/Dashboard/index.js`
- [Chart examples](https://github.com/phppoets-itsolutions/minible-app/tree/main/src/pages/Charts): `src/pages/Charts`
- [Form examples](https://github.com/phppoets-itsolutions/minible-app/tree/main/src/pages/Forms): `src/pages/Forms`
- [UI examples](https://github.com/phppoets-itsolutions/minible-app/tree/main/src/pages/Ui): `src/pages/Ui`
- [Map examples](https://github.com/phppoets-itsolutions/minible-app/tree/main/src/pages/Maps): `src/pages/Maps`
- [Icon examples](https://github.com/phppoets-itsolutions/minible-app/tree/main/src/pages/Icons): `src/pages/Icons`

### State and backend

- [Redux store](https://github.com/phppoets-itsolutions/minible-app/blob/main/src/store/index.js): `src/store/index.js`
- [Commerce actions](https://github.com/phppoets-itsolutions/minible-app/blob/main/src/store/e-commerce/actions.js): `src/store/e-commerce/actions.js`
- [Commerce saga](https://github.com/phppoets-itsolutions/minible-app/blob/main/src/store/e-commerce/saga.js): `src/store/e-commerce/saga.js`
- [Mock API backend](https://github.com/phppoets-itsolutions/minible-app/blob/main/src/helpers/AuthType/fakeBackend.js): `src/helpers/AuthType/fakeBackend.js`
- [API URL helpers](https://github.com/phppoets-itsolutions/minible-app/blob/main/src/helpers/url_helper.js): `src/helpers/url_helper.js`

### Other components

- **Dashboard user**

## Connections

- Dashboard user → Application router: opens (evidence: `src/App.js`)
- Application router → Route registry: loads routes (evidence: `src/App.js`)
- Application router → Route guard: routes through (evidence: `src/App.js`)
- Application router → Dashboard layouts: selects layout (evidence: `src/App.js`)
- Route registry → Dashboard analytics: routes to (evidence: `src/routes/allRoutes.js`)
- Route registry → Calendar: routes to (evidence: `src/routes/allRoutes.js`)
- Route registry → Chat: routes to (evidence: `src/routes/allRoutes.js`)
- Route registry → Commerce pages: routes to (evidence: `src/routes/allRoutes.js`)
- Route registry → Checkout: routes to (evidence: `src/routes/allRoutes.js`)
- Route registry → Product details: routes to (evidence: `src/routes/allRoutes.js`)
- Route registry → Email: routes to (evidence: `src/routes/allRoutes.js`)
- Route guard → Dashboard layouts: wraps pages (evidence: `src/App.js`)
- Dashboard layouts → Layout settings: renders (evidence: `src/components/VerticalLayout/index.js`)
- Layout settings → Redux store: dispatches settings (evidence: `src/components/CommonForBoth/Rightbar.js`)
- Checkout → Commerce sample data: reads sample data (evidence: `src/pages/Ecommerce/EcommerceCheckout.js`)
- Redux store → Commerce saga: runs sagas (evidence: `src/store/index.js`)
- Commerce saga → Commerce actions: dispatches actions (evidence: `src/store/e-commerce/saga.js`)
- Commerce saga → Mock API backend: calls API helper (evidence: `src/store/e-commerce/saga.js`)
- Mock API backend → API URL helpers: registers mock routes (evidence: `src/helpers/AuthType/fakeBackend.js`)
- Route registry → Contacts: routes to (evidence: `src/routes/allRoutes.js`)
- Route registry → Invoices: routes to (evidence: `src/routes/allRoutes.js`)
- Route registry → Chart examples: routes to (evidence: `src/routes/allRoutes.js`)
- Route registry → Form examples: routes to (evidence: `src/routes/allRoutes.js`)
- Route registry → UI examples: routes to (evidence: `src/routes/allRoutes.js`)
- Route registry → Map examples: routes to (evidence: `src/routes/allRoutes.js`)
- Route registry → Icon examples: routes to (evidence: `src/routes/allRoutes.js`)
