How omanixin-web/findmydate works
FindMyDate is a matchmaking service: applicants complete a multi-step profile, the service validates and stores submissions, matching generates candidate pairs, and staff review and manage them in a private portal. The README also documents dashboard analytics, participant search and detail views, CSV export, and demo seeding. The graph includes the main domain stages and storage/auth layers; edges use documented or excerpted relationships, while unsampled page and route behavior is represented only where the README supports it.
Main entry points: store.ts JSON file store · questions.ts Profile questions · page.tsx Dashboard · ApplyForm.tsx Application form
Components 20
Applicant experience
- Public site
app/(site)/page.tsx - Application form
components/ApplyForm.tsx - Submission endpoint
app/api/apply/route.ts
Profile and matching
- Profile questions
lib/questions.ts - Pairing algorithm
lib/matching.ts
Staff operations
- Admin sign-in
components/admin/LoginForm.tsx - Dashboard
app/admin/page.tsx - Participant views
app/admin/participants - Match review
app/admin/matches/page.tsx - Match actions
components/admin/Actions.tsx - Match status endpoint
app/api/admin/matches/[id]/route.ts - Run matching endpoint
app/api/admin/matches/run/route.ts - CSV export
app/api/admin/export/route.ts - Demo participant seeding
app/api/admin/seed/route.ts
Access and persistence
- Session authentication
lib/auth.ts - Admin access gate
middleware.ts - Login endpoint
app/api/admin/login/route.ts - JSON file store
lib/store.ts
Other components
- Applicant
- Staff
Connections 30
- Applicant → Public site: visits
README.md - Public site → Application form: opens form
- Application form → Profile questions: uses fields
components/ApplyForm.tsx - Application form → Submission endpoint: submits answers
- Submission endpoint → Profile questions: validates with
app/api/apply/route.ts - Submission endpoint → JSON file store: writes participant
app/api/apply/route.ts - Staff → Admin sign-in: signs in
README.md - Admin sign-in → Login endpoint: posts credentials
- Login endpoint → Session authentication: creates session
app/api/admin/login/route.ts - Admin access gate → Session authentication: verifies session
middleware.ts - Staff → Dashboard: reviews metrics
README.md - Dashboard → JSON file store: reads records
app/admin/page.tsx - Staff → Participant views: reviews profiles
README.md - Participant views → JSON file store: reads participants
app/admin/participants/page.tsx - Staff → Match review: reviews pairs
README.md - Match review → JSON file store: reads matches
app/admin/matches/page.tsx - Match review → Match actions: renders controls
app/admin/matches/page.tsx - Match actions → Match status endpoint: updates status
components/admin/Actions.tsx - Match status endpoint → JSON file store: mutates match
app/api/admin/matches/[id]/route.ts - Dashboard → Run matching endpoint: runs matching
- Run matching endpoint → Pairing algorithm: generates pairs
app/api/admin/matches/run/route.ts - Run matching endpoint → JSON file store: reads and saves
app/api/admin/matches/run/route.ts - Pairing algorithm → Profile questions: uses profile fields
lib/matching.ts - Pairing algorithm → JSON file store: reads match data
lib/matching.ts - Staff → CSV export: exports records
README.md - CSV export → JSON file store: reads participants
app/api/admin/export/route.ts - CSV export → Profile questions: uses field list
app/api/admin/export/route.ts - Dashboard → Demo participant seeding: adds demo people
- Demo participant seeding → JSON file store: writes participants
app/api/admin/seed/route.ts - Demo participant seeding → Profile questions: uses profile fields
app/api/admin/seed/route.ts