How mikeheul/next-cv-maker works
Main Components
A. Frontend Layer:
• Client-side Components (/components)
• Core Components (CandidateCard, CandidateForm, ExperienceCard, etc.)
• UI Components (/components/ui)
• Pages Layer (/app)
• Main pages
• Dynamic routes ([candidateId])
B. API Layer (/app/api):
• RESTful endpoints
• API Routes structure
• Custom hooks for data fetching
C. Database Layer:
• Prisma ORM
• Database schema (candidates, experiences)
D. Utility Layer:
• Validation (Zod)
• Utils and Helpers
[Client Layer]
• ↕
[API Layer]
• ↕
[Database Layer]
Detailed Component Relationships
Frontend:
• Relationship between pages and components
• Client-side state management
• Routing structure
API Layer:
• RESTful endpoints
• Connection to database through Prisma
• Custom hooks integration
Database:
• Prisma schema relationships
• Main entities (Candidate, Experience)
Key Flows to Highlight
A. CV Generation Flow:
User Interface → API Endpoints → Database → Generated CV
B. Data Management Flow:
Forms → API Routes → Prisma ORM → Database
Important Technical Elements
• Next.js App Router structure
• API route handlers
• Prisma client integration
• Tailwind CSS styling system
• Type system (TypeScript)