How praneetsoni382/subscription-task-application- works
TaskFlow is a multi-tenant task-operations SaaS with admin and employee workspaces. Users sign in, enter role-protected dashboards, and use task and collaboration features through the API; the backend enforces sessions and plan entitlements, persists workspace data in Firestore, and supports reminders, notifications, meetings, and billing. The graph preserves the README’s major capability branches. Several route and UI implementations were not sampled, so those subsystems use their exact enclosing directories; uncertain relationships are omitted rather than inferred.
Main entry points: app.ts Express API · firestoreRepository.ts Firestore repository · notificationService.ts Notification delivery · App.tsx App routing
Components 25
Web application
- App routing
client/src/App.tsx - Authentication state
client/src/contexts/AuthContext.tsx - API client
client/src/services/api.ts - Task workspace UI
client/src/pages - Meet workspace UI
client/src/components/meetings/GoogleMeetCard.tsx - Notification UI
client/src/components/notifications
API domains
- Express API
server/src/app.ts - Task routes
server/src/routes/tasks.ts - Team collaboration
server/src/routes - Dashboards and reports
server/src/routes - Meeting routes
server/src/routes/meetings.ts - Billing routes
server/src/routes - Notification routes
server/src/routes - Workspace onboarding
server/src/routes/bootstrap.ts
Platform services
- Session control
server/src/services/sessionService.ts - Entitlements
server/src/services/subscriptionEntitlementService.ts - Meet generation
server/src/services/meetGenerationService.ts - Razorpay payments
server/src/services/razorpayPaymentService.ts - Notification delivery
server/src/services/notificationService.ts - Web push delivery
server/src/services/pushNotificationService.ts - IST reminders
server/src/services/istSchedulerService.ts
Persistence
- Firestore repository
server/src/repositories/firestoreRepository.ts - Cloud Firestore
Other components
- Workspace user
- Google and Razorpay
Connections 34
- Workspace user → App routing: uses
client/src/App.tsx - App routing → Authentication state: provides auth
client/src/App.tsx - App routing → Task workspace UI: routes to
client/src/App.tsx - App routing → Notification UI: renders
client/src/App.tsx - Authentication state → API client: requests auth
client/src/contexts/AuthContext.tsx - Task workspace UI → API client: requests data
client/src/pages/admin/TasksPage.tsx - Meet workspace UI → API client: requests meetings
client/src/components/meetings/GoogleMeetCard.tsx - API client → Express API: calls endpoints
client/src/services/api.ts - Express API → Task routes: mounts
server/src/app.ts - Express API → Team collaboration: mounts
server/src/app.ts - Express API → Dashboards and reports: mounts
server/src/app.ts - Express API → Meeting routes: mounts
server/src/app.ts - Express API → Billing routes: mounts
server/src/app.ts - Express API → Notification routes: mounts
server/src/app.ts - Express API → Workspace onboarding: mounts
server/src/app.ts - Task routes → Firestore repository: reads and writes
server/src/routes/tasks.ts - Task routes → Notification delivery: triggers
server/src/routes/tasks.ts - Firestore repository → Cloud Firestore: persists data
server/src/repositories/firestoreRepository.ts - Session control → Cloud Firestore: updates sessions
server/src/services/sessionService.ts - Entitlements → Cloud Firestore: updates plans
server/src/services/subscriptionEntitlementService.ts - Entitlements → Firestore repository: creates identifiers
server/src/services/subscriptionEntitlementService.ts - Meet generation → Firestore repository: reads and writes
server/src/services/meetGenerationService.ts - Meet generation → Entitlements: reserves credits
server/src/services/meetGenerationService.ts - Meet generation → Google and Razorpay: calls Google
README.md - Razorpay payments → Firestore repository: reads and writes
server/src/services/razorpayPaymentService.ts - Razorpay payments → Entitlements: updates entitlements
server/src/services/razorpayPaymentService.ts - Razorpay payments → Google and Razorpay: uses Razorpay
README.md - Notification delivery → Firestore repository: records notices
server/src/services/notificationService.ts - Notification delivery → Web push delivery: dispatches push
server/src/services/notificationService.ts - IST reminders → Firestore repository: checks deadlines
server/src/services/istSchedulerService.ts - IST reminders → Notification delivery: sends reminders
server/src/services/istSchedulerService.ts - Notification routes → Notification delivery: delivers notices
server/src/routes/tasks.ts - Meeting routes → Meet generation: generates rooms
- Billing routes → Razorpay payments: handles billing