How samanhoseinpour/dubai-supplement works
Dubai Supplement is currently a foundation for a Persian, RTL fitness-supplement storefront and its API; the README explicitly says catalogue and brand features are not implemented. The principal available user flow is viewing the storefront shell and design gallery. The API provides runtime configuration, health probes, and infrastructure for persistence, outbox processing, Redis, and object storage. The graph reflects documented capabilities and sampled wiring; unsampled subsystem internals and storefront-to-API calls are not inferred.
Main entry points: app.module.ts Root module · outbox Transactional outbox · page.tsx Storefront shell · app.factory.ts Application factory
Components 23
Storefront foundation
- Storefront shell
apps/web/app/page.tsx - Design gallery
apps/web/app/design/page.tsx - Site components
apps/web/components/site - UI primitives
apps/web/components/ui - Persian interface copy
apps/web/lib/copy.ts - Theme provider
apps/web/components/site/providers.tsx
API runtime
- HTTP API
apps/api/src/main.ts - Application factory
apps/api/src/app.factory.ts - Root module
apps/api/src/app.module.ts - Health probes
apps/api/src/infra/health - Outbox worker
apps/api/src/worker.ts
Infrastructure adapters
- Configuration
apps/api/src/infra/config - HTTP policies
apps/api/src/infra/http - Database adapter
apps/api/src/infra/db - Transactional outbox
apps/api/src/infra/outbox - Redis adapter
apps/api/src/infra/redis - Object storage
apps/api/src/infra/storage/storage.provider.ts
Shared foundations
- Shared contracts
packages/contracts/src/common/index.ts - Persian utilities
packages/persian/src/index.ts
Other components
- Storefront visitor
- PostgreSQL
- Redis
- S3-compatible storage
Connections 28
- Storefront visitor → Storefront shell: opens storefront
- Storefront visitor → Design gallery: opens gallery
- Storefront shell → Site components: renders shell
- Storefront shell → Persian interface copy: uses copy
- Storefront shell → Theme provider: uses theme
- Design gallery → UI primitives: displays components
- Design gallery → Persian interface copy: uses copy
- HTTP API → Application factory: creates app
- Application factory → Configuration: loads validated config
- Application factory → Root module: boots module
- Application factory → HTTP policies: registers policies
- HTTP API → Transactional outbox: starts relay when role is all
- Root module → Configuration: imports
- Root module → Database adapter: imports
- Root module → Health probes: imports
- Root module → Transactional outbox: imports
- Root module → Redis adapter: imports
- Root module → Object storage: imports
- Database adapter → PostgreSQL: queries
- Redis adapter → Redis: uses
- Object storage → S3-compatible storage: reads and writes objects
- Health probes → PostgreSQL: probes
- Health probes → Redis: probes
- Health probes → Transactional outbox: checks backlog
- Outbox worker → Root module: boots context
- Outbox worker → Transactional outbox: starts relay
- Transactional outbox → PostgreSQL: persists events
- Shared contracts → Persian utilities: normalizes text