How tejavenkat29/ai-interview-platform works
AI Interview Platform is a Django/DRF and Next.js SaaS scaffold. Its working user journey is registration or login through the Next.js auth proxy, backend JWT issuance, cookie-held refresh tokens, then protected dashboard/profile access. Backend auth also supports verification and password-reset email dispatch. Interviews, resumes, AI, payments, and results appear as planned Phase 2–4 capabilities, but their runtime implementations were not sampled; their nodes represent only the app directories. Edges are limited to README statements and visible imports/calls, so unsampled feature relationships are omitted.
Main entry points: auth_service.py Auth business logic · users.py User routes · route.ts Auth proxy routes · email_service.py Email service
Components 28
Web experience
- Login and register
frontend/app/(auth)/login/page.tsx - Auth forms
frontend/components/auth/register-form.tsx - Auth API client
frontend/services/auth.ts - Auth proxy routes
frontend/app/api/auth/refresh/route.ts - Refresh cookies
frontend/lib/server/cookies.ts - Auth state hooks
frontend/hooks/use-auth.ts - Auth store
frontend/store/auth-store.ts - Dashboard pages
frontend/app/(dashboard)/dashboard/page.tsx - Profile UI
frontend/components/profile/profile-form.tsx - Backend API client
frontend/services/api-client.ts - User contracts
frontend/types/user.ts
Identity and accounts
- User routes
backend/apps/users/urls/users.py - Auth business logic
backend/apps/users/services/auth_service.py - User serializers
backend/apps/users/serializers.py - User model
backend/apps/users/models.py - Verification tokens
backend/apps/users/tokens.py
Email delivery
- Email service
backend/apps/users/services/email_service.py - Email task
backend/apps/users/tasks.py - Celery worker setup
backend/config/celery.py
Interview product areas
- Resume support
backend/apps/resumes - Interview practice
backend/apps/interviews - AI engine
backend/apps/ai_engine - Payments
backend/apps/payments
Platform runtime
- Django settings
backend/config/settings/base.py - API routing
backend/config/urls.py
Other components
- Candidate
- PostgreSQL
- Redis broker/cache
Connections 24
- Candidate → Login and register: opens
README.md - Login and register → Auth forms: renders
README.md - Auth forms → Auth API client: submits credentials
- Auth API client → Auth proxy routes: calls auth routes
- Auth proxy routes → Refresh cookies: sets refresh cookie
frontend/app/api/auth/refresh/route.ts - Auth proxy routes → Auth business logic: forwards auth request
frontend/app/api/auth/refresh/route.ts - Auth business logic → User serializers: serializes user
backend/apps/users/services/auth_service.py - User serializers → User model: validates and serializes
backend/apps/users/serializers.py - Auth business logic → User model: creates and updates
backend/apps/users/services/auth_service.py - Auth business logic → Verification tokens: builds reset tokens
backend/apps/users/services/auth_service.py - Auth business logic → Email service: requests email
backend/apps/users/services/auth_service.py - Email service → Verification tokens: encodes user token
backend/apps/users/services/email_service.py - Email service → Email task: dispatches email
backend/apps/users/services/email_service.py - Email task → Celery worker setup: runs as task
backend/apps/users/tasks.py - Celery worker setup → Redis broker/cache: uses broker
- Auth state hooks → Auth store: uses state
- Dashboard pages → Backend API client: loads protected data
- Profile UI → User routes: updates profile
- Backend API client → User routes: calls API
- User routes → Auth business logic: uses account logic
- User routes → User model: reads profile
- Django settings → PostgreSQL: configures database
backend/config/settings/base.py - Django settings → Redis broker/cache: configures cache
backend/config/settings/base.py - API routing → User routes: routes users