# rinnshanzuki/vikingserp-work architecture

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

- Interactive diagram: https://gitdiagram.com/rinnshanzuki/vikingserp-work
- Repository: https://github.com/rinnshanzuki/vikingserp-work

## Overview

Vikings Grill ERP is a five-subsystem restaurant operations suite: customers and staff use separate web modules for ordering, reservations, inventory, HR/payroll, feedback, and executive reporting. The main operational path spans customer dine-in ordering, kitchen order handling, cashier checkout, and inventory depletion; other modules support workforce, customer insight, and KPI oversight. The README documents the shared MySQL architecture and cross-module workflows. Several internal links below reflect that documentation; unsampled implementation details are not inferred.

Main entry points: [`reservation_queue-management/backend/routes`](https://github.com/rinnshanzuki/vikingserp-work/tree/main/reservation_queue-management/backend/routes) (Reservations, queue, seating), [`VikingsGrill-ERP/backend/src`](https://github.com/rinnshanzuki/vikingserp-work/tree/main/VikingsGrill-ERP/backend/src) (POS and inventory API), [`VikingsGrill-ERP/frontend/src/App.jsx`](https://github.com/rinnshanzuki/vikingserp-work/blob/main/VikingsGrill-ERP/frontend/src/App.jsx) (POS workspace), [`vikinggrilljewel/frontend/src`](https://github.com/rinnshanzuki/vikingserp-work/tree/main/vikinggrilljewel/frontend/src) (HR and payroll workspace)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_operations["POS and Inventory"]
  node_pos_ui["POS workspace<br/>[App.jsx]"]
  node_pos_backend["POS and inventory API"]
  node_inventory_app["Inventory procurement<br/>[App.jsx]"]
  node_inventory_items["Inventory items<br/>[InventoryItems.jsx]"]
  node_auth_layer["Authentication and roles"]
  node_customer_portal["Customer ordering portal<br/>[CustomerPortal.jsx]"]
end

subgraph group_floor["Reservations and Queue"]
  node_reservation_ui["Reservation and digital menu"]
  node_floor_api["Reservations, queue, seating"]
  node_kitchen_ui["Kitchen order management"]
  node_live_socket["Live order updates<br/>[index.js]"]
end

subgraph group_people["HR and Accounting"]
  node_hr_ui["HR and payroll workspace"]
  node_hr_api["HR and accounting API"]
end

subgraph group_insight["Feedback and CRM"]
  node_feedback_ui["Feedback and CRM<br/>[Feedback.jsx]"]
  node_feedback_api["Feedback and analytics API"]
  node_feedback_admin["CRM administration<br/>[adminRoutes.js]"]
end

subgraph group_analytics["Reporting and KPI"]
  node_kpi_ui["Executive reports and KPIs<br/>[App.jsx]"]
  node_report_api["Reporting services"]
end

node_customer(("Customer"))
node_staff(("Restaurant staff"))
node_database[("Shared MySQL database")]

node_customer -->|"places order"| node_customer_portal
node_customer_portal -.->|"submits order"| node_pos_backend
node_customer -->|"orders and reserves"| node_reservation_ui
node_reservation_ui -.->|"uses REST API"| node_floor_api
node_floor_api -->|"feeds kitchen orders"| node_kitchen_ui
node_floor_api -->|"registers socket"| node_live_socket
node_staff -->|"checks out"| node_pos_ui
node_pos_ui -->|"uses API"| node_pos_backend
node_pos_ui -->|"depletes stock"| node_inventory_app
node_inventory_app -.->|"manages stock"| node_inventory_items
node_pos_backend -.->|"protects routes"| node_auth_layer
node_staff -->|"records attendance"| node_hr_ui
node_hr_ui -->|"uses REST API"| node_hr_api
node_hr_ui -->|"processes payroll"| node_hr_api
node_customer -->|"submits rating"| node_feedback_ui
node_feedback_ui -.->|"uses API"| node_feedback_api
node_feedback_api -.->|"serves administration"| node_feedback_admin
node_staff -->|"reviews performance"| node_kpi_ui
node_kpi_ui -->|"requests reports"| node_report_api
node_report_api -->|"reads operational data"| node_database
node_pos_backend -->|"shares data store"| node_database
node_floor_api -->|"shares data store"| node_database
node_hr_api -->|"shares data store"| node_database
node_feedback_api -->|"queries records"| node_database

click node_pos_ui "https://github.com/rinnshanzuki/vikingserp-work/blob/main/VikingsGrill-ERP/frontend/src/App.jsx"
click node_pos_backend "https://github.com/rinnshanzuki/vikingserp-work/tree/main/VikingsGrill-ERP/backend/src"
click node_inventory_app "https://github.com/rinnshanzuki/vikingserp-work/blob/main/VikingsGrill-ERP/Inventory%20and%20Procurement/src/App.jsx"
click node_inventory_items "https://github.com/rinnshanzuki/vikingserp-work/blob/main/VikingsGrill-ERP/frontend/src/pages/inventory/InventoryItems.jsx"
click node_auth_layer "https://github.com/rinnshanzuki/vikingserp-work/tree/main/VikingsGrill-ERP/backend/src/middleware"
click node_customer_portal "https://github.com/rinnshanzuki/vikingserp-work/blob/main/VikingsGrill-ERP/frontend/src/pages/CustomerPortal.jsx"
click node_reservation_ui "https://github.com/rinnshanzuki/vikingserp-work/tree/main/reservation_queue-management/frontend/src"
click node_floor_api "https://github.com/rinnshanzuki/vikingserp-work/tree/main/reservation_queue-management/backend/routes"
click node_kitchen_ui "https://github.com/rinnshanzuki/vikingserp-work/tree/main/reservation_queue-management/frontend/src/pages/kitchen"
click node_live_socket "https://github.com/rinnshanzuki/vikingserp-work/blob/main/reservation_queue-management/backend/socket/index.js"
click node_hr_ui "https://github.com/rinnshanzuki/vikingserp-work/tree/main/vikinggrilljewel/frontend/src"
click node_hr_api "https://github.com/rinnshanzuki/vikingserp-work/tree/main/vikinggrilljewel/backend/src"
click node_feedback_ui "https://github.com/rinnshanzuki/vikingserp-work/blob/main/customer_feedback/frontend/src/pages/Feedback.jsx"
click node_feedback_api "https://github.com/rinnshanzuki/vikingserp-work/tree/main/customer_feedback/backend/routes"
click node_feedback_admin "https://github.com/rinnshanzuki/vikingserp-work/blob/main/customer_feedback/backend/routes/adminRoutes.js"
click node_kpi_ui "https://github.com/rinnshanzuki/vikingserp-work/blob/main/vikings_ra_kpi_module/frontend/src/App.jsx"
click node_report_api "https://github.com/rinnshanzuki/vikingserp-work/blob/main/vikings_ra_kpi_module/backend/src/controllers/reportingController.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_pos_ui,node_pos_backend,node_inventory_app,node_inventory_items,node_auth_layer,node_customer_portal toneBlue
class node_reservation_ui,node_floor_api,node_kitchen_ui,node_live_socket,node_database toneAmber
class node_hr_ui,node_hr_api toneMint
class node_feedback_ui,node_feedback_api,node_feedback_admin toneRose
class node_kpi_ui,node_report_api,node_customer,node_staff toneIndigo
```

## Components

### POS and Inventory

- [POS workspace](https://github.com/rinnshanzuki/vikingserp-work/blob/main/VikingsGrill-ERP/frontend/src/App.jsx): `VikingsGrill-ERP/frontend/src/App.jsx`
- [POS and inventory API](https://github.com/rinnshanzuki/vikingserp-work/tree/main/VikingsGrill-ERP/backend/src): `VikingsGrill-ERP/backend/src`
- [Inventory procurement](https://github.com/rinnshanzuki/vikingserp-work/blob/main/VikingsGrill-ERP/Inventory%20and%20Procurement/src/App.jsx): `VikingsGrill-ERP/Inventory and Procurement/src/App.jsx`
- [Inventory items](https://github.com/rinnshanzuki/vikingserp-work/blob/main/VikingsGrill-ERP/frontend/src/pages/inventory/InventoryItems.jsx): `VikingsGrill-ERP/frontend/src/pages/inventory/InventoryItems.jsx`
- [Authentication and roles](https://github.com/rinnshanzuki/vikingserp-work/tree/main/VikingsGrill-ERP/backend/src/middleware): `VikingsGrill-ERP/backend/src/middleware`
- [Customer ordering portal](https://github.com/rinnshanzuki/vikingserp-work/blob/main/VikingsGrill-ERP/frontend/src/pages/CustomerPortal.jsx): `VikingsGrill-ERP/frontend/src/pages/CustomerPortal.jsx`

### Reservations and Queue

- [Reservation and digital menu](https://github.com/rinnshanzuki/vikingserp-work/tree/main/reservation_queue-management/frontend/src): `reservation_queue-management/frontend/src`
- [Reservations, queue, seating](https://github.com/rinnshanzuki/vikingserp-work/tree/main/reservation_queue-management/backend/routes): `reservation_queue-management/backend/routes`
- [Kitchen order management](https://github.com/rinnshanzuki/vikingserp-work/tree/main/reservation_queue-management/frontend/src/pages/kitchen): `reservation_queue-management/frontend/src/pages/kitchen`
- [Live order updates](https://github.com/rinnshanzuki/vikingserp-work/blob/main/reservation_queue-management/backend/socket/index.js): `reservation_queue-management/backend/socket/index.js`

### HR and Accounting

- [HR and payroll workspace](https://github.com/rinnshanzuki/vikingserp-work/tree/main/vikinggrilljewel/frontend/src): `vikinggrilljewel/frontend/src`
- [HR and accounting API](https://github.com/rinnshanzuki/vikingserp-work/tree/main/vikinggrilljewel/backend/src): `vikinggrilljewel/backend/src`

### Feedback and CRM

- [Feedback and CRM](https://github.com/rinnshanzuki/vikingserp-work/blob/main/customer_feedback/frontend/src/pages/Feedback.jsx): `customer_feedback/frontend/src/pages/Feedback.jsx`
- [Feedback and analytics API](https://github.com/rinnshanzuki/vikingserp-work/tree/main/customer_feedback/backend/routes): `customer_feedback/backend/routes`
- [CRM administration](https://github.com/rinnshanzuki/vikingserp-work/blob/main/customer_feedback/backend/routes/adminRoutes.js): `customer_feedback/backend/routes/adminRoutes.js`

### Reporting and KPI

- [Executive reports and KPIs](https://github.com/rinnshanzuki/vikingserp-work/blob/main/vikings_ra_kpi_module/frontend/src/App.jsx): `vikings_ra_kpi_module/frontend/src/App.jsx`
- [Reporting services](https://github.com/rinnshanzuki/vikingserp-work/blob/main/vikings_ra_kpi_module/backend/src/controllers/reportingController.js): `vikings_ra_kpi_module/backend/src/controllers/reportingController.js`

### Other components

- **Customer**
- **Restaurant staff**
- **Shared MySQL database**

## Connections

- Customer → Customer ordering portal: places order (evidence: `README.md`)
- Customer ordering portal → POS and inventory API: submits order
- Customer → Reservation and digital menu: orders and reserves (evidence: `README.md`)
- Reservation and digital menu → Reservations, queue, seating: uses REST API
- Reservations, queue, seating → Kitchen order management: feeds kitchen orders (evidence: `README.md`)
- Reservations, queue, seating → Live order updates: registers socket (evidence: `reservation_queue-management/backend/server.js`)
- Restaurant staff → POS workspace: checks out (evidence: `README.md`)
- POS workspace → POS and inventory API: uses API (evidence: `README.md`)
- POS workspace → Inventory procurement: depletes stock (evidence: `README.md`)
- Inventory procurement → Inventory items: manages stock
- POS and inventory API → Authentication and roles: protects routes (evidence: `VikingsGrill-ERP/backend/src/routes/procurementRoutes.js`)
- Restaurant staff → HR and payroll workspace: records attendance (evidence: `README.md`)
- HR and payroll workspace → HR and accounting API: uses REST API (evidence: `README.md`)
- HR and payroll workspace → HR and accounting API: processes payroll (evidence: `README.md`)
- Customer → Feedback and CRM: submits rating (evidence: `README.md`)
- Feedback and CRM → Feedback and analytics API: uses API
- Feedback and analytics API → CRM administration: serves administration
- Restaurant staff → Executive reports and KPIs: reviews performance (evidence: `README.md`)
- Executive reports and KPIs → Reporting services: requests reports (evidence: `vikings_ra_kpi_module/frontend/src/App.jsx`)
- Reporting services → Shared MySQL database: reads operational data (evidence: `README.md`)
- POS and inventory API → Shared MySQL database: shares data store (evidence: `README.md`)
- Reservations, queue, seating → Shared MySQL database: shares data store (evidence: `README.md`)
- HR and accounting API → Shared MySQL database: shares data store (evidence: `README.md`)
- Feedback and analytics API → Shared MySQL database: queries records
