How vishwa073/prepai works
Prepwise is a browser-based interview-practice app. Users authenticate, create an interview from job details, review generated questions, practice answering, and view per-answer feedback and a session rating. The route tree and excerpts support the creation, interview, and feedback stages; the README documents voice interaction and AI insights, but the sampled code does not establish every runtime integration. Groups reflect the user journey and shared application layers.
Main entry points: App.tsx Route application · firebase.config.ts Firestore client · layouts Layouts and guards · form-mock-interview.tsx Interview form
Components 23
Application shell
- Route application
src/App.tsx - Layouts and guards
src/layouts - Home page
src/routes/home.tsx - Loading view
src/routes/loader-page.tsx - Shared UI components
src/components/ui - Navigation and shell
src/components/header.tsx
Interview preparation
- Interview form
src/components/form-mock-interview.tsx - Create or edit
src/routes/create-edit-page.tsx - Interview dashboard
src/routes/dashboard.tsx - Interview card
src/components/pin.tsx - Question generation
src/components/form-mock-interview.tsx
Practice and feedback
- Interview briefing
src/routes/mock-load-page.tsx - Mock interview
src/routes/mock-interview-page.tsx - Question section
src/components/question-section.tsx - Answer capture
src/components/record-answer.tsx - Feedback report
src/routes/feedback.tsx
Identity and persistence
- Sign-in and sign-up
src/routes - User provisioning
src/handlers/auth-handler.tsx - Firestore client
src/config/firebase.config.ts - Interview records
- Answer records
Other components
- Candidate
- Google Gemini
Connections 27
- Candidate → Route application: opens
src/App.tsx - Route application → Layouts and guards: routes through
src/App.tsx - Route application → Home page: routes to
src/App.tsx - Route application → Sign-in and sign-up: routes to
src/App.tsx - Route application → Interview dashboard: routes to
src/App.tsx - Route application → Create or edit: routes to
src/App.tsx - Route application → Interview briefing: routes to
src/App.tsx - Route application → Mock interview: routes to
src/App.tsx - Route application → Feedback report: routes to
src/App.tsx - Layouts and guards → User provisioning: renders
src/layouts/public-layout.tsx - Layouts and guards → Navigation and shell: renders
src/layouts/main-layout.tsx - Create or edit → Interview form: renders
src/routes/create-edit-page.tsx - Interview form → Question generation: generates
src/components/form-mock-interview.tsx - Question generation → Google Gemini: requests questions
- Interview form → Firestore client: writes interview
src/components/form-mock-interview.tsx - Firestore client → Interview records: persists records
- Interview dashboard → Firestore client: loads interviews
src/routes/dashboard.tsx - Interview dashboard → Interview card: renders cards
src/routes/dashboard.tsx - Interview briefing → Firestore client: loads interview
src/routes/mock-load-page.tsx - Mock interview → Question section: renders
src/routes/mock-interview-page.tsx - Answer capture → Firestore client: stores answer
src/components/record-answer.tsx - Feedback report → Firestore client: loads report data
src/routes/feedback.tsx - Firestore client → Answer records: reads answers
- Feedback report → Interview card: shows interview
src/routes/feedback.tsx - User provisioning → Firestore client: creates user record
src/handlers/auth-handler.tsx - User provisioning → Loading view: shows while loading
src/handlers/auth-handler.tsx - Route application → Shared UI components: uses UI