Files
cv-site/README.md
T

78 lines
2.2 KiB
Markdown
Raw Normal View History

2025-10-20 08:54:21 +01:00
# CV Site - Go + HTMX
**Modern, minimal curriculum vitae website** for Juan Andrés Moreno Rubio built with **Go** and **HTMX**.
## 🚀 Features
-**Bilingual Support** - Spanish and English with instant switching (no page reload)
-**Server-Side PDF Export** - Professional PDF generation using chromedp (headless Chrome)
-**Browser Print** - Alternative print-friendly layout for manual PDF creation
2025-10-20 08:54:21 +01:00
-**HTMX Dynamic Updates** - Smooth UX without heavy JavaScript
-**Paper Design** - Professional CV on elegant white paper with gray background
-**Responsive** - Mobile, tablet, and desktop friendly
-**JSON-Based Content** - Easy to update without touching code
-**AI Development Section** - Showcases modern AI-assisted development skills
-**Fast & Lightweight** - Go backend with chromedp for PDF generation
2025-10-20 08:54:21 +01:00
## 📋 Quick Start
### Prerequisites
- **Go 1.21+** installed
### Run
\`\`\`bash
# Build and run
go build -o cv-server && ./cv-server
\`\`\`
Open **http://localhost:1999**
2025-10-20 08:54:21 +01:00
- 🇬🇧 English: http://localhost:1999/?lang=en
- 🇪🇸 Spanish: http://localhost:1999/?lang=es
2025-10-20 08:54:21 +01:00
## 📄 Updating Your CV
Edit JSON files in `data/`:
- **English**: `data/cv-en.json`
- **Spanish**: `data/cv-es.json`
No code changes needed - just refresh browser!
## 🖨️ Export to PDF
### Server-Side PDF Generation (Recommended)
1. Click **"Download as PDF"** button in the action bar
2. PDF is generated server-side using headless Chrome
3. File downloads automatically: `CV-Juan-Andres-Moreno-Rubio-{lang}.pdf`
**Advantages:**
- Consistent rendering across all platforms
- Perfect font rendering
- No browser compatibility issues
- Professional quality output
### Browser Print (Alternative)
1. Click **"Print Friendly"** button
2. Use browser print dialog (Cmd/Ctrl + P)
3. Select "Save as PDF"
**Endpoints:**
- English PDF: `http://localhost:1999/export/pdf?lang=en`
- Spanish PDF: `http://localhost:1999/export/pdf?lang=es`
2025-10-20 08:54:21 +01:00
## 🎯 Key Technologies
- Backend: **Go** (stdlib net/http)
- PDF Generation: **chromedp** (headless Chrome automation)
2025-10-20 08:54:21 +01:00
- Frontend: **HTMX** 1.9.10
- Styling: Custom **CSS** with Quicksand font
2025-10-20 08:54:21 +01:00
- Data: **JSON** files
---
**Built with ❤️ using Go, HTMX, and AI assistance**