Spaces:
Configuration error
Configuration error
Commit History
-
You are building QuickCv, a CV builder web app using Next.js (app router), TypeScript, and TailwindCSS. Implement the following features in prioritized order:
Verified signature1. Authentication (NextAuth) with protected routes. 2. Template gallery (/templates) and template components that accept data + theme (colors, fonts, avatar). 3. Multi-step builder (/builder/[cvId]) with react-hook-form, zod validation, autosave, and live preview. 4. AI backend endpoint (/api/ai/generate) using OpenAI to generate or rewrite section content. Provide 3 prompt templates: Profile, Experience bullets, Skills summary. 5. PDF generation endpoint (/api/cv/pdf) that produces a downloadable PDF identical to the chosen template (use Puppeteer or react-pdf). 6. Payment integration for M-Pesa STK Push: endpoints to start payment and webhook to confirm. 7. Dashboard for listing and managing CVs, including create, duplicate, edit, delete, and download (download gated by payment status). Provide code for each part with: - Type-safe API routes or tRPC methods. - Prisma schema for User, CV, Template, Payment, AIJob. - Example Tailwind components for templates and builder UI (responsive…e5d7e42