How ahmedhassandev1/shena-care works
Shena Care is a beauty and skincare commerce platform: customers browse composed product views and proceed through ordering, while staff and suppliers manage product intake, sourcing, and fulfillment. Its main runtime is a NestJS modular monolith backed by PostgreSQL, with a Next.js storefront and a separate FastAPI AI service for enrichment, content generation, and guidance. The graph preserves care, messaging, operations, and account capabilities shown in the repository tree. Some connections are dashed because their source wiring was not sampled; README documents the composition boundary and major business contexts.
Main entry points: main.ts NestJS API · ingestion.service.ts Product Ingestion · fulfillment.service.ts Inventory and Delivery · prisma.service.ts PostgreSQL Access
Components 19
Customer Experience
- Storefront
apps/web/src/app/page.tsx - Product Composition
apps/api/src/application/composition/services/product-view.service.ts - Accounts and Auth
apps/api/src/modules/accounts/accounts.service.ts
Product Operations
- Catalog
apps/api/src/modules/catalog/services/catalog.service.ts - Product Ingestion
apps/api/src/modules/ingestion/services/ingestion.service.ts - Supplier Sourcing
apps/api/src/modules/sourcing/services/sourcing.service.ts
Commerce Operations
- Listings and Pricing
apps/api/src/modules/commerce/services/commerce.service.ts - Cart and Orders
apps/api/src/modules/ordering/services/ordering.service.ts - Inventory and Delivery
apps/api/src/modules/fulfillment/services/fulfillment.service.ts
Care and AI
- Care Routines
apps/api/src/modules/care/services/care.service.ts - Recommendations
apps/api/src/modules/guidance/services/guidance.service.ts - AI API
services/ai/app/api/routes.py - Guidance Engine
services/ai/app/services/guidance_service.py
Shared Platform
- Operations
apps/api/src/modules/operations/services/dashboard.service.ts - Messaging
apps/api/src/modules/messaging/services/router.service.ts - Media Storage
apps/api/src/platform/storage/storage.service.ts - PostgreSQL Access
apps/api/src/platform/database/prisma.service.ts - NestJS API
apps/api/src/main.ts
Other components
- Customer
Connections 28
- Customer → Storefront: browses
- Storefront → NestJS API: requests
- NestJS API → Product Composition: routes views
- Product Composition → Catalog: composes catalog
- Product Composition → Listings and Pricing: composes commerce
- NestJS API → Product Ingestion: routes intake
- Product Ingestion → Catalog: publishes products
apps/api/src/modules/ingestion/services/ingestion.service.ts - Product Ingestion → Supplier Sourcing: uses supplier data
apps/api/src/modules/ingestion/services/ingestion.service.ts - Product Ingestion → Media Storage: stores media
apps/api/src/modules/ingestion/services/ingestion.service.ts - Product Ingestion → AI API: requests enrichment
- NestJS API → Accounts and Auth: authenticates requests
- NestJS API → Listings and Pricing: routes pricing
- NestJS API → Cart and Orders: routes orders
- NestJS API → Inventory and Delivery: routes fulfillment
- Inventory and Delivery → Cart and Orders: updates order status
apps/api/src/modules/fulfillment/services/fulfillment.service.ts - Inventory and Delivery → Catalog: checks catalog
- Inventory and Delivery → Supplier Sourcing: uses supply plans
- NestJS API → Care Routines: routes care
- Care Routines → Messaging: sends reminders
- NestJS API → Recommendations: routes recommendations
- Recommendations → AI API: calls AI
- AI API → Guidance Engine: dispatches guidance
services/ai/app/api/routes.py - Guidance Engine → PostgreSQL Access: validates result
- NestJS API → Operations: routes operations
- Catalog → PostgreSQL Access: reads and writes
- Product Ingestion → PostgreSQL Access: reads and writes
apps/api/src/modules/ingestion/services/ingestion.service.ts - Inventory and Delivery → PostgreSQL Access: reads and writes
apps/api/src/modules/fulfillment/services/fulfillment.service.ts - Media Storage → PostgreSQL Access: checks media records
apps/api/src/platform/storage/storage.controller.ts