How vishalx360/taskflow-space works
Main Components
a. Client-Side Layer:
• Next.js Frontend (src/modules/*)
• UI Components (src/modules/ui/*)
• Context Providers (src/contexts/*)
• Client-side Libraries (src/lib/*)
b. API Layer:
• tRPC API Routes (src/server/api/routers/*)
• Authentication Routes (src/pages/api/auth/*)
• Webhook Handlers (src/pages/api/webhook/*)
c. Server-Side Layer:
• Authentication System (NextAuth)
• tRPC Handlers
• Email Service
• Pusher Real-time Updates
d. Data Layer:
• Neon PostgreSQL Database
• Prisma ORM
• Redis Cache
┌─ Client Layer ─────────────────────────┐
• Next.js Pages │
• React Components │
• UI Components │
• ┬────────────────────┘
• ↓
┌─ API Layer ──────────────────────────┐
• tRPC Routes │
• Auth Routes │
• Webhooks │
• ┬──────────────────┘
• ↓
┌─ Service Layer ────────────────────────┐
• Authentication │
• Real-time Updates (Pusher) │
• Email Service │
• ┬────────────────────┘
• ↓
┌─ Data Layer ──────────────────────────┐
• Neon PostgreSQL │
• Redis Cache │
• Prisma ORM │
• ┘
Key Relationships to Highlight
a. Frontend Module Relationships:
• Dashboard → Board → TaskList → TaskCard
• Settings → Various Setting Sections
• Authentication Flow
b. API Interactions:
• tRPC Router connections
• Authentication flows
• Real-time update paths
c. Data Flow:
• Client → API → Service → Database
• Real-time updates via Pusher
• Cache interactions
Implementation Details
• Clear component labels
Additional Elements
• Database schema relationships
• Authentication flow
• Real-time update flow
• Workspace collaboration model