How rajit-d/planet-interview works
Main Components
Frontend Layer:
• Client-Side Components (React/Next.js)
• Public Pages (Home, Sign In/Up)
• Admin Dashboard
• Candidate Interface
• Form Management
• Server Components (Next.js App Router)
• API Routes
Backend Layer:
• Authentication System (NextAuth.js)
• Database Layer (Prisma ORM)
• External Services (Supabase)
Key Relationships to Highlight
• Client → API Routes
• API Routes → Database
• Authentication Flow
• Server Actions → Database
Component Relationships
• Admin dashboard → Role management
• Candidate forms → Database storage
• Authentication → Protected routes
• API endpoints → Database operations
Technical Stack Indicators
Technology badges for:
• Next.js
• Prisma
• NextAuth
• Supabase
• Tailwind CSS
Additional Elements
• Error handling flows
• Caching mechanisms
• Build/deploy pipeline
• The separation of admin and candidate interfaces
• The role-based access control system
• The form handling mechanism
• The authentication flow
• The database schema and relationships
Remember to include notes about:
• The app directory structure following Next.js 13+ conventions
• The use of dynamic routes ([orgId], [roleId], etc.)
• The integration of UI components with server-side logic
• The authentication and session management system
This will provide a comprehensive view of the application's architecture while maintaining clarity for other developers who need to understand the system.