How burakorkmez/remote-interview-platform works
Project Type & Purpose
• This is a full-stack application designed for video calling interviews. It integrates real-time video calls (powered by Stream), screen sharing/recording functionality, and robust authentication/authorization (using Clerk). The README’s “Highlights” section confirms that key features include video calls, screen sharing/recording, server actions, and dynamic/static routes.
Major Components
a. Frontend:
• The “src/app” directory includes the page components for different routes such as home, admin dashboard, meetings, recordings, and schedule.
• UI-related components under “src/components” and “src/components/ui”, along with client-side hooks (“src/hooks”) and utilities (“src/lib”).
b. Backend & Server Logic:
• The “convex” directory represents the backend services. It includes API definitions (generated types & JS), data modeling (schema), and application logic (e.g. files like comments.ts, interviews.ts, users.ts, and auth.config.ts).
• Convex is likely used as a serverless data and API platform, handling data storage and business logic operations.
c. External Services & Integrations:
• Stream: Provides the real-time video call and possibly screen share/recording capabilities.
• Clerk: Manages authentication and authorization for users.
d. Infrastructure & Configuration:
• Next.js configuration files (next.config.mjs).
• Build and style configurations (tailwind.config.ts, postcss.config.mjs).
• Environment variables setup as described in the README.
• Package management files (package.json, package-lock.json).
Relationships & Interactions
• The frontend (Next.js pages and components) interacts with:
• The Convex backend via API calls (managed by the “convex” folder) for data operations, user comments, scheduling, etc.
• External services: Calls to Stream for video interactions and window integration with Clerk for auth.
• Backend via Convex:
• Handles business logic and data persistence (comments, interviews, users, etc.).
• May expose endpoints used by the front-end server actions.
• Authentication Flow:
• The Clerk integration ensures that any user accessing pages (e.g. meetings, recordings) is properly authenticated.
• UI and State Management:
• Client and server components collaborate through Next.js’s server actions and React rendering, ensuring data consistency.
• Data Flow Example:
• A user makes a video call request on the frontend → The request is authenticated via Clerk → The call details and data are handled by server actions that interact with Convex → In parallel, the video stream is managed by contacting Stream’s services.
Architectural Patterns & Design Principles
• Separation of Concerns: Clear separation between frontend (UI/UX, routing, client logic) and backend (data and business logic via Convex).
• Client/Server Components: Use of Next.js server actions and layouts.
• Modular Structure: Well-organized directories (e.g., the “convex” folder isolates backend concerns while “src/app” organizes presentation logic).
• External Integration: The system leverages third-party services (Stream and Clerk) which are externalized from the core business logic.