How mo-hossam-stack/youtube-clone works
YOUTUBE-CLONE is a Django video-sharing platform: users register, upload and validate videos, then watch and engage with approved content. Uploads are quarantined, scanned asynchronously, and sent to a CDN rather than stored as application-server media. The graph includes the documented discovery, playback, social, and watermarking capabilities. Some views and integrations are unsampled; those relationships are included only where the README or source index supports them, and the README is cited for documented product capabilities.
Main entry points: tasks.py Malware scan task · models.py Video records · views.py Video workflows · upload.py Upload service
Components 20
Accounts
- Registration
backend/accounts/views.py - Account forms
backend/accounts/forms.py - User accounts
backend/accounts/models.py
Video Workflows
- Video workflows
backend/videos/views.py - Upload interface
backend/static/js/upload.js - Client validation
backend/static/js/upload-validation.js - Upload forms
backend/videos/forms.py
Media Pipeline
- Upload validation
backend/videos/validators.py - Upload service
backend/videos/services/upload.py - Quarantine storage
backend/videos/quarantine.py - Video records
backend/videos/models.py - Malware scan task
backend/videos/tasks.py - Celery runtime
backend/config/celery.py - ClamAV scanner
- Quarantine cleanup
backend/videos/management/commands/cleanup_quarantine.py
Delivery & Engagement
- Media URL & upload helpers
backend/videos/helpers.py - ImageKit CDN
- Discovery & playback
backend/videos/views.py - Views & reactions
backend/videos/models.py
Other components
- Viewer / creator
Connections 27
- Viewer / creator → Registration: registers
backend/accounts/views.py - Registration → Account forms: uses
backend/accounts/views.py - Viewer / creator → Upload interface: uploads through
README.md - Upload interface → Client validation: validates with
backend/static/js/upload.js - Viewer / creator → Video workflows: uses
README.md - Video workflows → Upload forms: uses
backend/videos/views.py - Video workflows → Upload service: creates uploads via
backend/videos/views.py - Video workflows → Video records: reads and updates
backend/videos/views.py - Video workflows → Media URL & upload helpers: uses media URLs
backend/videos/views.py - Upload forms → Upload validation: validates with
backend/videos/forms.py - Upload service → Upload validation: validates title
backend/videos/services/upload.py - Upload service → Quarantine storage: saves upload
backend/videos/services/upload.py - Upload service → Video records: creates record
backend/videos/services/upload.py - Upload service → Malware scan task: enqueues scan
backend/videos/services/upload.py - Malware scan task → Video records: updates scan status
backend/videos/tasks.py - Malware scan task → Quarantine storage: reads and deletes
backend/videos/tasks.py - Malware scan task → ClamAV scanner: scans file
backend/videos/tasks.py - Malware scan task → Media URL & upload helpers: uploads clean video
backend/videos/tasks.py - Media URL & upload helpers → ImageKit CDN: uploads and builds URLs
backend/videos/helpers.py - Video records → Media URL & upload helpers: builds playback URLs
backend/videos/models.py - Quarantine cleanup → Quarantine storage: cleans files
backend/videos/management/commands/cleanup_quarantine.py - Quarantine cleanup → Video records: checks records
backend/videos/management/commands/cleanup_quarantine.py - Celery runtime → Malware scan task: runs tasks
backend/videos/tasks.py - Viewer / creator → Discovery & playback: discovers and watches
README.md - Discovery & playback → Video records: serves approved media
README.md - Viewer / creator → Views & reactions: views and reacts
README.md - Discovery & playback → Views & reactions: records engagement
backend/videos/views.py