How vaibhavpandey-1221/next-hire works
This repository implements a job marketplace: jobseekers and recruiters use a Next.js frontend, while separate services handle accounts, job and company listings, user profiles, and subscriptions. The visible workflow includes account access, job discovery and applications, recruiter listing management, and profile management; auth also supports password recovery. The sampled source establishes several API and service-internal relationships, but the README is empty and frontend-to-API wiring was not shown, so those links are omitted or marked unverified.
Main entry points: layout.tsx Next.js application · auth.ts Registration and recovery · controllers/job.ts Listings and applications · routes/job.ts Job routes
Components 27
Web experience
- Next.js application
frontend/src/app/layout.tsx - Account access
frontend/src/app/(auth)/login/page.tsx - Job discovery
frontend/src/app/jobs/page.tsx - Job applications
frontend/src/app/jobs/[id]/page.tsx - Company profiles
frontend/src/app/company/[id]/page.tsx - User profiles
frontend/src/app/account/page.tsx - Career tools
frontend/src/components/resume-analyser.tsx
Accounts and profiles
- Auth API
services/auth/src/app.ts - Auth routes
services/auth/src/routes/auth.ts - Registration and recovery
services/auth/src/controllers/auth.ts - Account database access
services/auth/src/utils/db.ts - User profile API
services/user/src/routes/user.ts - Profile management
services/user/src/controllers/user.ts - User database access
services/user/src/utils/db.ts
Jobs and companies
- Job API
services/job/src/app.ts - Job routes
services/job/src/routes/job.ts - Listings and applications
services/job/src/controllers/job.ts - Marketplace database access
services/job/src/utils/db.ts - Job authorization
services/job/src/middlewares/auth.ts
Subscriptions and messaging
- Mail event publisher
services/auth/src/producer.ts - Payment routes
services/payment/src/routes/payment.ts - Subscription payments
services/payment/src/controllers/payment.ts - Payment database access
services/payment/src/utils/db.ts - Payment authorization
services/payment/src/middlewares/auth.ts
Other components
- Jobseeker or recruiter
- Kafka
- Upload service
Connections 26
- Jobseeker or recruiter → Next.js application: uses
- Next.js application → Account access: presents
- Next.js application → Job discovery: presents
- Next.js application → Job applications: presents
- Next.js application → Company profiles: presents
- Next.js application → User profiles: presents
- Next.js application → Career tools: presents
- Auth API → Auth routes: mounts
services/auth/src/app.ts - Auth routes → Registration and recovery: dispatches
services/auth/src/routes/auth.ts - Registration and recovery → Account database access: queries
services/auth/src/controllers/auth.ts - Registration and recovery → Mail event publisher: publishes mail
services/auth/src/controllers/auth.ts - Auth API → Mail event publisher: connects
services/auth/src/app.ts - Registration and recovery → Upload service: uploads resume
services/auth/src/controllers/auth.ts - Registration and recovery → Kafka: publishes events
- User profile API → Profile management: dispatches
- Profile management → User database access: queries
services/user/src/controllers/user.ts - Job API → Job routes: mounts
services/job/src/app.ts - Job routes → Listings and applications: dispatches
services/job/src/routes/job.ts - Job routes → Job authorization: checks access
services/job/src/routes/job.ts - Listings and applications → Marketplace database access: queries
services/job/src/controllers/job.ts - Listings and applications → Upload service: uploads logo
services/job/src/controllers/job.ts - Listings and applications → Kafka: publishes mail
services/job/src/controllers/job.ts - Payment routes → Subscription payments: dispatches
- Subscription payments → Payment database access: queries
services/payment/src/controllers/payment.ts - Subscription payments → Payment authorization: uses auth
services/payment/src/controllers/payment.ts - Payment authorization → Payment database access: loads user
services/payment/src/middlewares/auth.ts