================================================================================
📦 UPLOAD CHECKLIST FOR NAMECHEAP - Print This!
================================================================================

✅ STEP 1: Create .env File (Do This First!)

   File location: server/.env
   
   Contents:
   ┌─────────────────────────────────────────────────────────────────────────┐
   │ EMAIL_USER=info@taxiagadirairport.com                                    │
   │ EMAIL_PASS=your_real_password_here                                       │
   └─────────────────────────────────────────────────────────────────────────┘
   
   ⚠️ Replace "your_real_password_here" with your actual password!

================================================================================

✅ STEP 2: Upload These 7 Files to public_html/api/

   □ booking.php      (22.7 KB)
   □ contact.php      (10.3 KB)
   □ health.php       (0.2 KB)
   □ config.php       (1.0 KB)
   □ test.php         (3.2 KB)  [Optional]
   □ .htaccess        (1.1 KB)
   □ .env             (create this first!)

   Total: ~38 KB

================================================================================

✅ STEP 3: Set File Permissions

   In cPanel File Manager:
   
   □ All .php files → 644
   □ .htaccess      → 644
   □ .env           → 600 (SECURITY!)

================================================================================

✅ STEP 4: Test Your Server

   Visit these URLs in your browser:
   
   □ https://taxiagadirairport.com/api/test.php
     → Should show JSON with checks
   
   □ https://taxiagadirairport.com/api/health
     → Should show: {"status":"OK"...}

================================================================================

✅ STEP 5: Update Frontend

   Update these 2 files in your React app:
   
   □ BookingForm.tsx
     Change: 'https://taxiagadir-production.up.railway.app/api/booking'
     To: '/api/booking'
   
   □ Contact.tsx
     Change: 'https://taxiagadir-production.up.railway.app/api/contact'
     To: '/api/contact'

================================================================================

✅ STEP 6: Final Testing

   □ Submit test booking form
   □ Submit test contact form
   □ Check you received admin emails
   □ Check customer received confirmation email

================================================================================

🚫 DO NOT UPLOAD THESE FILES:

   □ server.js (old Node.js file)
   □ package.json
   □ package-lock.json
   □ node_modules/
   □ railway.json
   □ README.md
   □ email-templates/
   □ Any .md documentation files

================================================================================

📁 CORRECT UPLOAD STRUCTURE:

   public_html/
   │
   ├── index.html (your React app)
   ├── assets/ (your React build)
   │
   └── api/  ← Upload everything here
       ├── booking.php
       ├── contact.php
       ├── health.php
       ├── config.php
       ├── test.php
       ├── .htaccess
       └── .env

================================================================================

🆘 TROUBLESHOOTING:

   Problem: "404 Not Found"
   Solution: Check file names are exact, in api/ folder
   
   Problem: "500 Error"
   Solution: Check file permissions (644), PHP version (7.4+)
   
   Problem: "Emails not sending"
   Solution: Check .env credentials, contact Namecheap support

================================================================================

📞 FOR DETAILED HELP:

   See: START_HERE_UPLOAD.md
   Or:  UPLOAD_TO_NAMECHEAP.md
   Or:  PHP_DEPLOYMENT_GUIDE.md

================================================================================

                      ✅ Good luck with your deployment! 🚀

================================================================================

