# real-gboy/project-404 architecture

> Architecture diagram of the GitHub repository real-gboy/project-404, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/real-gboy/project-404
- Repository: https://github.com/real-gboy/project-404

## Overview

Project-404 is a shared application foundation plus five independently deployed business products. The product workflows are represented at domain level because the available source excerpts are sparse; the README documents product capabilities, separate databases/processes, and that products reach Core through published contracts. Core capability nodes use sampled source paths where available; other product capability detail is intentionally consolidated rather than inferred from unsampled implementation.

Main entry points: [`core/app.module.ts`](https://github.com/real-gboy/project-404/blob/main/core/app.module.ts) (Core platform), [`atlas/backend/app/realestate/realestate.module.ts`](https://github.com/real-gboy/project-404/blob/main/atlas/backend/app/realestate/realestate.module.ts) (Real-estate operations), [`admit/backend/app/admit/public/application/public-service.ts`](https://github.com/real-gboy/project-404/blob/main/admit/backend/app/admit/public/application/public-service.ts) (Ticket discovery), [`admit/backend/app/admit/tickets/application/tickets-service.ts`](https://github.com/real-gboy/project-404/blob/main/admit/backend/app/admit/tickets/application/tickets-service.ts) (QR tickets and check-in)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_foundation["Shared foundation"]
  node_core["Core platform<br/>[app.module.ts]"]
  node_identity["Identity"]
  node_rbac["Permissions<br/>[rbac-repository.ts]"]
  node_files["File storage<br/>[file-storage.ts]"]
  node_audit["Audit"]
  node_notifications["Notifications"]
  node_events["Event delivery<br/>[outbox-worker.ts]"]
  node_assistant["AI orchestration"]
end

subgraph group_mizan["Mizan law firm"]
  node_mizan_app["Law-firm operations"]
end

subgraph group_atlas["Atlas real estate"]
  node_atlas_app["Real-estate operations"]
  node_atlas_crm["CRM and leads"]
  node_atlas_property_sales["Inventory and sales"]
end

subgraph group_hotel["HotelOS hospitality"]
  node_hotel_app["Hotel operations"]
end

subgraph group_raqib["Raqib inspections"]
  node_raqib_app["Field inspections<br/>[review-service.ts]"]
end

subgraph group_admit["Admit ticketing"]
  node_admit_public["Ticket discovery<br/>[public-service.ts]"]
  node_admit_bookings["Bookings"]
  node_admit_payments["Payment verification"]
  node_admit_tickets["QR tickets and check-in<br/>[tickets-service.ts]"]
  node_admit_worker["Email worker<br/>[worker.py]"]
end

node_users(("Product users"))

node_users -->|"use law tools"| node_mizan_app
node_users -->|"manage property business"| node_atlas_app
node_users -->|"run hotel operations"| node_hotel_app
node_users -->|"inspect and review"| node_raqib_app
node_users -->|"buy tickets"| node_admit_public
node_admit_public -.->|"create bookings"| node_admit_bookings
node_admit_bookings -.->|"verify transfers"| node_admit_payments
node_admit_payments -.->|"issue tickets"| node_admit_tickets
node_admit_tickets -.->|"send email"| node_admit_worker
node_users -->|"scan at door"| node_admit_tickets
node_atlas_app -->|"provides CRM"| node_atlas_crm
node_atlas_app -->|"manages inventory and sales"| node_atlas_property_sales
node_mizan_app -->|"uses shared foundation"| node_core
node_atlas_app -->|"uses shared foundation"| node_core
node_hotel_app -->|"uses shared foundation"| node_core
node_raqib_app -->|"uses shared foundation"| node_core
node_admit_public -->|"uses shared foundation"| node_core

click node_core "https://github.com/real-gboy/project-404/blob/main/core/app.module.ts"
click node_identity "https://github.com/real-gboy/project-404/blob/main/core/identity/application/identity-service.ts"
click node_rbac "https://github.com/real-gboy/project-404/blob/main/core/rbac/infrastructure/rbac-repository.ts"
click node_files "https://github.com/real-gboy/project-404/blob/main/core/files/infrastructure/file-storage.ts"
click node_audit "https://github.com/real-gboy/project-404/blob/main/core/audit/api/audit.controller.ts"
click node_notifications "https://github.com/real-gboy/project-404/blob/main/core/notifications/application/notification-service.ts"
click node_events "https://github.com/real-gboy/project-404/blob/main/core/events/outbox/outbox-worker.ts"
click node_assistant "https://github.com/real-gboy/project-404/blob/main/core/assistant/application/assistant-service.ts"
click node_mizan_app "https://github.com/real-gboy/project-404/tree/main/mizan/backend/app/lawfirm"
click node_atlas_app "https://github.com/real-gboy/project-404/blob/main/atlas/backend/app/realestate/realestate.module.ts"
click node_atlas_crm "https://github.com/real-gboy/project-404/tree/main/atlas/backend/app/realestate/crm"
click node_atlas_property_sales "https://github.com/real-gboy/project-404/tree/main/atlas/backend/app/realestate/properties"
click node_hotel_app "https://github.com/real-gboy/project-404/tree/main/hotel-project/backend/app/hotel"
click node_raqib_app "https://github.com/real-gboy/project-404/blob/main/raqib/backend/app/raqib/review/application/review-service.ts"
click node_admit_public "https://github.com/real-gboy/project-404/blob/main/admit/backend/app/admit/public/application/public-service.ts"
click node_admit_bookings "https://github.com/real-gboy/project-404/blob/main/admit/backend/app/admit/bookings/application/bookings-service.ts"
click node_admit_payments "https://github.com/real-gboy/project-404/blob/main/admit/backend/app/admit/payments/application/payments-service.ts"
click node_admit_tickets "https://github.com/real-gboy/project-404/blob/main/admit/backend/app/admit/tickets/application/tickets-service.ts"
click node_admit_worker "https://github.com/real-gboy/project-404/blob/main/admit/worker/admit_worker/worker.py"

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_core,node_identity,node_rbac,node_files,node_audit,node_notifications,node_events,node_assistant,node_users toneBlue
class node_mizan_app toneAmber
class node_atlas_app,node_atlas_crm,node_atlas_property_sales toneMint
class node_hotel_app toneRose
class node_raqib_app toneIndigo
class node_admit_public,node_admit_bookings,node_admit_payments,node_admit_tickets,node_admit_worker toneTeal
```

## Components

### Shared foundation

- [Core platform](https://github.com/real-gboy/project-404/blob/main/core/app.module.ts): `core/app.module.ts`
- [Identity](https://github.com/real-gboy/project-404/blob/main/core/identity/application/identity-service.ts): `core/identity/application/identity-service.ts`
- [Permissions](https://github.com/real-gboy/project-404/blob/main/core/rbac/infrastructure/rbac-repository.ts): `core/rbac/infrastructure/rbac-repository.ts`
- [File storage](https://github.com/real-gboy/project-404/blob/main/core/files/infrastructure/file-storage.ts): `core/files/infrastructure/file-storage.ts`
- [Audit](https://github.com/real-gboy/project-404/blob/main/core/audit/api/audit.controller.ts): `core/audit/api/audit.controller.ts`
- [Notifications](https://github.com/real-gboy/project-404/blob/main/core/notifications/application/notification-service.ts): `core/notifications/application/notification-service.ts`
- [Event delivery](https://github.com/real-gboy/project-404/blob/main/core/events/outbox/outbox-worker.ts): `core/events/outbox/outbox-worker.ts`
- [AI orchestration](https://github.com/real-gboy/project-404/blob/main/core/assistant/application/assistant-service.ts): `core/assistant/application/assistant-service.ts`

### Mizan law firm

- [Law-firm operations](https://github.com/real-gboy/project-404/tree/main/mizan/backend/app/lawfirm): `mizan/backend/app/lawfirm`

### Atlas real estate

- [Real-estate operations](https://github.com/real-gboy/project-404/blob/main/atlas/backend/app/realestate/realestate.module.ts): `atlas/backend/app/realestate/realestate.module.ts`
- [CRM and leads](https://github.com/real-gboy/project-404/tree/main/atlas/backend/app/realestate/crm): `atlas/backend/app/realestate/crm`
- [Inventory and sales](https://github.com/real-gboy/project-404/tree/main/atlas/backend/app/realestate/properties): `atlas/backend/app/realestate/properties`

### HotelOS hospitality

- [Hotel operations](https://github.com/real-gboy/project-404/tree/main/hotel-project/backend/app/hotel): `hotel-project/backend/app/hotel`

### Raqib inspections

- [Field inspections](https://github.com/real-gboy/project-404/blob/main/raqib/backend/app/raqib/review/application/review-service.ts): `raqib/backend/app/raqib/review/application/review-service.ts`

### Admit ticketing

- [Ticket discovery](https://github.com/real-gboy/project-404/blob/main/admit/backend/app/admit/public/application/public-service.ts): `admit/backend/app/admit/public/application/public-service.ts`
- [Bookings](https://github.com/real-gboy/project-404/blob/main/admit/backend/app/admit/bookings/application/bookings-service.ts): `admit/backend/app/admit/bookings/application/bookings-service.ts`
- [Payment verification](https://github.com/real-gboy/project-404/blob/main/admit/backend/app/admit/payments/application/payments-service.ts): `admit/backend/app/admit/payments/application/payments-service.ts`
- [QR tickets and check-in](https://github.com/real-gboy/project-404/blob/main/admit/backend/app/admit/tickets/application/tickets-service.ts): `admit/backend/app/admit/tickets/application/tickets-service.ts`
- [Email worker](https://github.com/real-gboy/project-404/blob/main/admit/worker/admit_worker/worker.py): `admit/worker/admit_worker/worker.py`

### Other components

- **Product users**

## Connections

- Product users → Law-firm operations: use law tools (evidence: `README.md`)
- Product users → Real-estate operations: manage property business (evidence: `README.md`)
- Product users → Hotel operations: run hotel operations (evidence: `README.md`)
- Product users → Field inspections: inspect and review (evidence: `README.md`)
- Product users → Ticket discovery: buy tickets (evidence: `README.md`)
- Ticket discovery → Bookings: create bookings
- Bookings → Payment verification: verify transfers
- Payment verification → QR tickets and check-in: issue tickets
- QR tickets and check-in → Email worker: send email
- Product users → QR tickets and check-in: scan at door (evidence: `README.md`)
- Real-estate operations → CRM and leads: provides CRM (evidence: `README.md`)
- Real-estate operations → Inventory and sales: manages inventory and sales (evidence: `README.md`)
- Law-firm operations → Core platform: uses shared foundation (evidence: `README.md`)
- Real-estate operations → Core platform: uses shared foundation (evidence: `README.md`)
- Hotel operations → Core platform: uses shared foundation (evidence: `README.md`)
- Field inspections → Core platform: uses shared foundation (evidence: `README.md`)
- Ticket discovery → Core platform: uses shared foundation (evidence: `README.md`)
