How saadelsafel-dev/dakhl-freelance works
DAKHL is a freelancer–client marketplace. Users authenticate and complete a profile, discover providers, send connection requests, and use accepted connections for messaging and deal tracking; wallet funding supports paid transactions. The sampled code places much of the product UI and orchestration in App.tsx, with Firebase-backed operations in wallet.ts and authentication in AuthFlow.tsx. The documentation files suggest further capability areas, but their contents were not provided, so this map is limited to evidenced features and relationships.
Main entry points: AuthFlow.tsx Sign-in and setup · firebase.ts Firebase client setup · App.tsx Marketplace application · wallet.ts Wallet and marketplace operations
Components 13
Application entry
- React entrypoint
src/main.tsx - Error boundary
src/components/ErrorBoundary.tsx
Identity and profiles
- Sign-in and setup
src/features/auth/AuthFlow.tsx - Profile and domain records
src/types/profile.ts
Marketplace workflows
- Marketplace application
src/App.tsx - Wallet and marketplace operations
src/lib/wallet.ts - Media and URL handling
src/lib/media.ts
Firebase platform
- Firebase client setup
src/lib/firebase.ts - Firebase Authentication
- Cloud Firestore
- Firebase Storage
Other components
- Marketplace user
- Google sign-in
Connections 20
- React entrypoint → Error boundary: wraps UI
src/main.tsx - React entrypoint → Sign-in and setup: renders
src/main.tsx - Sign-in and setup → Marketplace application: renders after sign-in
src/main.tsx - Marketplace user → Sign-in and setup: signs in
- Sign-in and setup → Firebase client setup: uses client
src/features/auth/AuthFlow.tsx - Sign-in and setup → Firebase Authentication: authenticates
src/features/auth/AuthFlow.tsx - Sign-in and setup → Google sign-in: signs in with
src/features/auth/AuthFlow.tsx - Sign-in and setup → Cloud Firestore: reads and writes profiles
src/features/auth/AuthFlow.tsx - Marketplace application → Wallet and marketplace operations: calls operations
src/App.tsx - Marketplace application → Media and URL handling: processes media
src/App.tsx - Marketplace application → Cloud Firestore: subscribes to records
src/App.tsx - Marketplace application → Profile and domain records: uses domain records
src/App.tsx - Wallet and marketplace operations → Firebase client setup: uses client and errors
src/lib/wallet.ts - Wallet and marketplace operations → Cloud Firestore: reads and writes marketplace data
src/lib/wallet.ts - Wallet and marketplace operations → Media and URL handling: validates media URLs
src/lib/wallet.ts - Wallet and marketplace operations → Profile and domain records: uses domain records
src/lib/wallet.ts - Firebase client setup → Firebase Authentication: initializes
src/lib/firebase.ts - Firebase client setup → Cloud Firestore: initializes
src/lib/firebase.ts - Firebase client setup → Firebase Storage: initializes
src/lib/firebase.ts - Error boundary → Firebase client setup: reads project info
src/components/ErrorBoundary.tsx