How ebrahimshoeib1999/newdarrow works
D-Arrow Business is a multi-module business management application, with a React frontend and a NestJS/Prisma backend. Users enter through routed, authenticated workspaces and manage CRM relationships, accounting, tasks, chat, and other business operations. The CRM and accounting branches are distinct domain areas; custom modules provide configurable business records. Evidence is uneven: the router, selected services, and several backend components are indexed or excerpted, while many feature implementations are not. Unverified frontend-to-backend wiring is therefore omitted.
Main entry points: router.tsx Workspace routing · prisma.service.ts Prisma database access · storage.service.ts File storage service · customers.controller.ts Customer records
Components 19
Application shell
- Workspace routing
src/app/router.tsx - App providers
src/app/providers.tsx
Identity and access
- Sign-in and profile
src/features/auth/api/auth.service.ts - Authentication service
backend/src/auth/auth.service.ts - Permission checks
backend/src/auth/guards/permissions.guard.ts
Customer operations
- Customer records
backend/src/crm/customers.controller.ts - Customer operations
backend/src/crm/customers.service.ts - Deals pipeline
src/features/crm/pages/DealsPipelinePage.tsx - CRM attachments
backend/src/tasks/task-attachments.controller.ts
Finance
- Billing workspace
src/features/billing/utils/accounting-engine.ts - Invoice operations
backend/src/finance/invoices.controller.ts - Invoice service
backend/src/finance/invoices.service.ts
Workspaces
- Custom module rules
src/features/custom-modules/lib/module-engine.ts - Chat attachments
src/features/chat/api/chat-storage.service.ts - File storage service
backend/src/storage/storage.service.ts - Prisma database access
backend/src/common/prisma.service.ts - Task workspace
src/stores/tasks.store.ts - People operations
src/features/people/api/people.service.ts
Other components
- Business user
Connections 18
- Business user → Workspace routing: opens workspace
src/app/router.tsx - Workspace routing → Sign-in and profile: routes to
src/app/router.tsx - Workspace routing → Deals pipeline: routes to
src/app/router.tsx - Workspace routing → Billing workspace: routes to
src/app/router.tsx - Workspace routing → Task workspace: routes to
src/app/router.tsx - Workspace routing → Chat attachments: routes to
src/app/router.tsx - App providers → Sign-in and profile: provides auth
src/app/providers.tsx - Authentication service → Prisma database access: queries
backend/src/auth/auth.service.ts - Permission checks → Prisma database access: checks access
backend/src/auth/guards/permissions.guard.ts - Customer records → Customer operations: delegates
backend/src/crm/customers.controller.ts - Customer operations → Prisma database access: uses
backend/src/crm/customers.service.ts - Invoice operations → Invoice service: delegates
backend/src/finance/invoices.controller.ts - Invoice service → Prisma database access: uses
backend/src/finance/invoices.service.ts - CRM attachments → File storage service: stores files
backend/src/tasks/task-attachments.controller.ts - File storage service → Prisma database access
- Chat attachments → File storage service: uploads files
- Billing workspace → Invoice operations
- Deals pipeline → Customer records