╔═══════════════════════════════════════════════════════════════╗
║   NEWSROOM REPORTER - MAMP QUICK START                        ║
╚═══════════════════════════════════════════════════════════════╝

🎯 SETUP IN 4 STEPS:

┌─────────────────────────────────────────────────────────────┐
│ STEP 1: Create Symlink in MAMP                              │
└─────────────────────────────────────────────────────────────┘

cd /Applications/MAMP/htdocs
ln -s /Users/daveporter/Desktop/CODING-2024/newsroom-reporter/web newsroom-reporter

┌─────────────────────────────────────────────────────────────┐
│ STEP 2: Copy SSO Settings from NANO-RESEARCH               │
└─────────────────────────────────────────────────────────────┘

cd /Users/daveporter/Desktop/CODING-2024/newsroom-reporter/web
cp .env.example .env

Then copy these from /Users/daveporter/Desktop/CODING-2024/NANO-RESEARCH/.env:
- SSO_ENABLED
- SSO_TENANT_ID
- SSO_CLIENT_ID

┌─────────────────────────────────────────────────────────────┐
│ STEP 3: Start MAMP                                          │
└─────────────────────────────────────────────────────────────┘

1. Open MAMP application
2. Click "Start Servers"
3. Default port: 8888

┌─────────────────────────────────────────────────────────────┐
│ STEP 4: Access the App                                      │
└─────────────────────────────────────────────────────────────┘

Open browser and go to:
👉 http://localhost:8888/newsroom-reporter/

═══════════════════════════════════════════════════════════════

✅ WHAT'S FIXED:

• Column mapping corrected (A-G, not B-H)
• INSPIRATION category now works (Column G)
• All 7 categories properly extracted
• Web interface with SSO authentication
• Real-time Python output streaming
• Secure PDF downloads

═══════════════════════════════════════════════════════════════

📝 USAGE:

1. Sign in with Microsoft (same SSO as NANO-RESEARCH)
2. Date auto-fills with today (e.g., "Tuesday, January 7")
3. Click "Generate Report"
4. Watch real-time output
5. Download PDF when complete

═══════════════════════════════════════════════════════════════

🔧 TROUBLESHOOTING:

Problem: "Permission denied on reports/"
Fix: chmod 755 /Users/daveporter/Desktop/CODING-2024/newsroom-reporter/reports

Problem: "Python venv not found"
Fix: Symlink should work automatically (paths are relative)

Problem: "SSO not working"
Fix: Check .env has correct SSO_TENANT_ID and SSO_CLIENT_ID

═══════════════════════════════════════════════════════════════

📦 BACKED UP TO:
bitbucket.org:zlalani/volt-newsroom-scraper-report.git

═══════════════════════════════════════════════════════════════
