▌ tailormycv.md
▒ PATH:
▒ SIZE: 2.4 KB
▒ MODIFIED: 2026-05-29 09:02
MemPalace Archive/projects/tailormycv.md▒ SIZE: 2.4 KB
▒ MODIFIED: 2026-05-29 09:02
# TailorMyCV Project Brief
## What is it?
Flask web app for job seekers to upload CVs and generate job-tailored resumes.
Users upload a CV (DOCX/PDF) or enter info manually, paste a job posting URL, and get a customized CV.
## Tech Stack
- Flask + Python
- Templates: HTML + vanilla JS (no React)
- Supabase (PostgreSQL) for persistence
- DOCX parsing: python-docx
- PDF parsing: pdfplumber
- OCR: tesseract (brew install tesseract)
- AI parsing: OpenRouter free models
## Key Files
- `app.py` — main Flask app (~27KB)
- `services/` — parsing and AI services
- `templates/` — HTML templates (cv_upload.html, etc.)
- `supabase/` — client config
- `prompts/` — AI prompt templates
## Current Status (May 29, 2026)
### Session #112 Summary (May 29 04:39 HKT)
**Two critical bugs fixed:**
1. **Loading forever** — `generate_gap_questions()` calls MiniMax AI at page load → 5-10s stall. Questions page now loads instantly.
2. **0/0 gaps** — Session cookie was >4,875 bytes → browser silently dropped it → user appeared logged out → 0 gaps. **Fix:** `gaps`, `requirements`, `gap_answers` now stored in Supabase `job_descriptions` table instead of session cookie.
**DB schema changes (committed, needs Railway deploy):**
```sql
ALTER TABLE job_descriptions ADD COLUMN gaps JSONB;
ALTER TABLE job_descriptions ADD COLUMN requirements JSONB;
ALTER TABLE job_descriptions ADD COLUMN gap_answers JSONB DEFAULT '[]'::jsonb;
CREATE POLICY "anon_all" ON job_descriptions FOR ALL TO anon USING (true) WITH CHECK (true);
```
**Code pushed:** commit `6817e7d`
**Railway deploy needed:** https://rezmycv.up.railway.app/gap/analyze
### Earlier Status (May 25)
- DOCX, PDF upload and parsing working
- AI-powered CV text extraction working
- Job posting URL → CV customization working
- **Supabase anon key issue** — service_role key needed for some endpoints
- tesseract OCR installed via `brew install tesseract`
### CV Preview Format
```
NICHOLAS WILLIAMS
📧 ncik@me.com 📱 +852 59205327 📍 Hong Kong
[Summary section]
WORK EXPERIENCE
│ Chief Communications Officer 2025→
│ NASDAQ: BGIN (Dynamic AI)
│ • bullet points per role
```
## Commands
- Run locally: `cd ~/tailormycv && flask run` or `python app.py`
- Supabase project: tfkzirfxixlylizlmxeur
## Related
- Nick's personal CV: https://nicks-cv.up.railway.app/
- TailorMyCV is a separate product for job seekers (not Nick's personal CV)