cd "C:\Github\Youtube Project"
& "C:/Github/Youtube Project/venv/Scripts/Activate.ps1"cd "C:\Github\Youtube Project"
python src/api_server.pyThis serves the dashboard data and main analytics.
cd "C:\Github\Youtube Project"
python src/prediction_api.pyThis serves the ML-powered video performance predictions.
cd "C:\Github\Youtube Project\frontend"
npm run devThis serves the React frontend with Vite.
cd "C:\Github\Youtube Project"
& "C:/Github/Youtube Project/venv/Scripts/Activate.ps1"
python src/api_server.pyExpected output: 🚀 Starting YouTube Extractor API server...
cd "C:\Github\Youtube Project"
& "C:/Github/Youtube Project/venv/Scripts/Activate.ps1"
python src/prediction_api.pyExpected output: 🔄 Loading ML models... followed by 🚀 Starting YouTube Performance Prediction API...
cd "C:\Github\Youtube Project\frontend"
npm run devExpected output: Vite dev server starting on http://localhost:3001
Once all services are running:
- 🎯 Main Application: http://localhost:3001
- 📊 Dashboard API: http://localhost:8000
- 🤖 Prediction API: http://localhost:8002
- 📚 API Documentation: http://localhost:8002/docs
# Check if all ports are active
netstat -an | findstr ":3001 :8000 :8002"
# Test prediction API
curl -X GET "http://localhost:8002/api/test"
# Test dashboard API
curl -X GET "http://localhost:8000/api/status"If you need to kill existing processes:
# Find processes using the ports
netstat -ano | findstr ":8000"
netstat -ano | findstr ":8002"
netstat -ano | findstr ":3001"
# Kill specific process (replace PID with actual process ID)
taskkill /PID [PID_NUMBER] /FOrder matters: Start services in this order:
- Dashboard API (8000) - Provides data
- Prediction API (8002) - Provides ML predictions
- Frontend (3001) - Consumes both APIs
The frontend is configured with proxy rules to route:
/api/predict→ Prediction API (port 8002)/api/*→ Dashboard API (port 8000)
All services should show startup messages confirming they're ready before proceeding to the next one! 🎉
Once all services are running, you'll have access to:
- 📊 Data Dashboard - View extracted YouTube channel and video analytics
- 🤖 ML Predictions - AI-powered video performance predictions
- 🖼️ Thumbnail Analysis - Upload and analyze video thumbnails
- 🏷️ Smart Tags - Get recommended tags based on content analysis
- 📈 Performance Metrics - Views, RQS, and CTR predictions
- 🎨 Dark/Light Mode - Toggle between visual themes
- 📱 Responsive Design - Works on desktop and mobile devices
- Keep all three terminals open while using the application
- The prediction API may take a few seconds to load all ML models on first startup
- If you encounter port conflicts, use the troubleshooting commands to kill existing processes
- The frontend will automatically proxy API requests to the correct backend services