How cusherahkugan/careera works
This is a two-sided hiring marketplace: job seekers build profiles and apply, while recruiters manage company jobs, review candidates, and schedule interviews. API routes implement those domain stages and use shared services for authentication, matching, resume parsing, notifications, and persistence. The excerpts support several service and route relationships; UI-to-API wiring and some unsampled route behavior are not shown, so those connections are omitted.
Main entry points: prisma.ts Application database · applications/route.ts Applications · resume/route.ts Resume upload · interviews/route.ts Interviews
Components 26
User experience
- Marketplace pages
src/app/jobs/page.tsx - Company pages
src/app/companies/page.tsx - Application view
src/app/applications/[id]/page.tsx - Recruiter dashboard
src/app/dashboard/page.tsx - Navigation
src/components/navbar.tsx - Interview controls
src/components/interviews.tsx
Identity and profiles
- Profile editor
src/components/profile-form.tsx - Authentication
src/lib/auth.ts - Registration
src/app/api/auth/register/route.ts - Profile API
src/app/api/profile/route.ts - Resume upload
src/app/api/profile/resume/route.ts
Hiring workflow
- Job listings
src/app/api/jobs/route.ts - Applications
src/app/api/applications/route.ts - Interviews
src/app/api/interviews/route.ts - Job recommendations
src/app/api/ai/job-recommendations/route.ts
Shared services
- Resume parsing
src/lib/resume.ts - AI assistance
src/lib/ai.ts - Local matching
src/lib/recommend.ts - Company context
src/lib/company.ts - Notifications
src/lib/notify.ts - Email delivery
src/lib/email.ts - Calendar invites
src/lib/ics.ts - Request validation
src/lib/validations.ts
Persistence
- Application database
src/lib/prisma.ts
Other components
- Job seeker
- Recruiter
Connections 27
- Authentication → Application database: looks up users
src/lib/auth.ts - Registration → Application database: creates accounts
src/app/api/auth/register/route.ts - Profile API → Authentication: checks session
src/app/api/profile/route.ts - Profile API → Application database: reads and updates
src/app/api/profile/route.ts - Resume upload → Authentication: checks session
src/app/api/profile/resume/route.ts - Resume upload → Application database: reads and updates
src/app/api/profile/resume/route.ts - Resume upload → AI assistance: requests parsing
src/app/api/profile/resume/route.ts - Resume upload → Resume parsing: parses resume
src/app/api/profile/resume/route.ts - Job listings → Local matching: ranks jobs
src/app/api/jobs/route.ts - Job listings → Company context: gets company context
src/app/api/jobs/route.ts - Job listings → Application database: reads and writes
src/app/api/jobs/route.ts - Applications → Local matching: scores application
src/app/api/applications/route.ts - Applications → AI assistance: rescoring request
src/app/api/applications/route.ts - Applications → Notifications: sends updates
src/app/api/applications/route.ts - Applications → Application database: creates applications
src/app/api/applications/route.ts - Applications → Company context: gets company context
src/app/api/applications/route.ts - Interviews → Calendar invites: builds invitations
src/app/api/interviews/route.ts - Interviews → Notifications: notifies applicants
src/app/api/interviews/route.ts - Interviews → Application database: reads and updates
src/app/api/interviews/route.ts - Interviews → Company context: gets company context
src/app/api/interviews/route.ts - Notifications → Application database: stores notifications
src/lib/notify.ts - Notifications → Email delivery: sends email
src/lib/notify.ts - Job recommendations → Authentication: checks session
src/app/api/ai/job-recommendations/route.ts - Job recommendations → AI assistance: requests recommendations
src/app/api/ai/job-recommendations/route.ts - Job recommendations → Local matching: uses local matching
src/app/api/ai/job-recommendations/route.ts - Job recommendations → Application database: reads candidate data
src/app/api/ai/job-recommendations/route.ts - Profile API → Request validation: validates input
src/app/api/profile/route.ts