2.8 KiB
2.8 KiB
Admin Panel - Quick Start
🎛 Access Admin Panel
MAMP: http://localhost:8888/admin.html
Standard: http://localhost:8000/admin.html
Or click "Admin Panel →" link in the main app footer.
📊 What You Can Do
View Metrics
- Total platforms configured
- Total format configurations
- Number of codecs in use
- Aspect ratios supported
Manage Platforms
- Add new platforms (TikTok, Meta, YouTube, etc.)
- Edit existing platform specifications
- Delete platforms you no longer need
- Export all specs to JSON (backup)
- Import specs from JSON (restore/bulk update)
➕ Add New Platform (Quick)
- Click "+ Add New Platform"
- Fill in:
- Platform Key:
my_platform(lowercase, no spaces) - Platform Name:
My Platform - Codec: Select H264, H265, or VP9
- Container: Select MP4, WebM, or MOV
- Platform Key:
- Add at least one format:
- Aspect Ratio:
16:9 - Resolution:
1920x1080 - Bitrate:
1500k - Min Bitrate:
1300k - Max Bitrate:
1700k - Audio:
128k
- Aspect Ratio:
- Click "Save Platform"
✅ Platform is now available in main app!
📝 Example Platforms
TikTok Configuration
Key: tiktok
Name: TikTok
Codec: libx265 (H265)
Container: mp4
Formats:
- 9:16 → 540x960 → 1050k (840-1300k) → Audio: 128k
- 1:1 → 640x640 → 1000k (840-1200k) → Audio: 128k
Meta Configuration
Key: meta
Name: Meta (Facebook/Instagram)
Codec: libx264 (H264)
Container: mp4
Formats:
- 1:1 → 720x720 → 1000k (840-1200k) → Audio: 128k
- 16:9 → 1280x720 → 1250k (1100-1400k) → Audio: 128k
💾 Backup & Restore
Create Backup
- Click "Export Specs (JSON)"
- File downloads:
platform_specs_2025-10-16.json - Save somewhere safe
Restore Backup
- Click "Import Specs (JSON)"
- Select your backup JSON file
- Confirms: "Specifications imported successfully"
- All platforms restored!
🎨 Interface
Black + Yellow Theme - Matches main app
Components:
- Metrics cards (yellow numbers)
- Platform cards (expandable details)
- Format tables (all aspect ratios)
- Modal form (add/edit platforms)
- Action buttons (yellow primary, outlined secondary)
⚠️ Important Notes
- Changes are immediate - Saved platforms appear instantly in main app
- No authentication - Admin page is open (add auth for production)
- Platform keys immutable - Can't change key after creation (delete and recreate instead)
- Backup before import - Import replaces ALL existing platforms
- Specs persist - Saved to
backend/platform_specs.json(auto-loads on restart)
🔗 Quick Links
- Main App: index.html
- Admin Panel: admin.html
- Full Admin Guide: ADMIN_GUIDE.md
- API Docs: README.md
Ready to manage your platforms! 🎉