How tuananhtrieu1305/movie-watching-web works
This is a modular movie-streaming platform: users browse and watch films, manage accounts and subscriptions, and can use collaborative watch parties and movie-chat features. The repository also contains admin tools and Python services for video processing and RAG-based recommendations/chat. The graph follows documented capabilities and sampled call relationships; unsampled integrations are not asserted, so some service-to-service links are omitted.
Main entry points: app.js Platform API · route.jsx App routes · indexer.py Catalog ingestion · service.py Chat orchestration
Components 34
Web experience
- App routes
frontend/src/app/routes/route.jsx - Authentication UI
frontend/src/modules/auth/context/AuthContext.jsx - Movie discovery
frontend/src/modules/discovery - Watch experience
frontend/src/modules/streaming/hooks/useWatchPage.js - Admin content tools
frontend/src/modules/admin/content/SeasonManager.jsx - Watch parties
frontend/src/modules/meeting/context/MeetingContext.jsx - Movie API client
frontend/src/shared/services/movieService.js - Chatbot widget
frontend/src/modules/chatbot/components/ChatbotWidget.jsx
Platform API
- Platform API
backend-node/src/app.js - Accounts
backend-node/src/modules/auth/auth.service.js - Streaming catalog
backend-node/src/modules/streaming/services/production.service.js - Comments and ratings
backend-node/src/modules/comment/comment.controller.js - Watchlist
backend-node/src/modules/watchlist/watchlist.controller.js - Viewing history
backend-node/src/modules/history/history.controller.js - Subscriptions
backend-node/src/modules/payment/payment.controller.js - Admin and analytics
backend-node/src/modules/admin/admin.controller.js - Meeting sessions
backend-node/src/modules/meeting/meeting.controller.js - Realtime sockets
backend-node/src/core/sockets/socketManager.js - Platform database
backend-node/src/core/database/prisma.js
AI chatbot
- Chat and ingest API
backend-python/ai-chatbot/src/api/v1/ingestion_router.py - RAG composition
backend-python/ai-chatbot/src/pipeline/rag_pipeline.py - Chat orchestration
backend-python/ai-chatbot/src/chat/service.py - Context retrieval
backend-python/ai-chatbot/src/retrieval/retriever.py - Response generation
backend-python/ai-chatbot/src/generation/generator.py - Catalog ingestion
backend-python/ai-chatbot/src/ingestion/indexer.py - Document chunking
backend-python/ai-chatbot/src/ingestion/chunking.py - Catalog data loader
backend-python/ai-chatbot/src/ingestion/data_loader.py - Vector store
backend-python/ai-chatbot/src/database/vector_store.py - Hybrid search
backend-python/ai-chatbot/src/retrieval/hybrid_search.py - Result reranking
backend-python/ai-chatbot/src/retrieval/reranker.py - Chat history
backend-python/ai-chatbot/src/history/repository.py - MongoDB
backend-python/ai-chatbot/src/database/mongodb.py
Video processing
- Video processor
backend-python/video-processor/src/services/video_processor.py
Other components
- Viewer
Connections 34
- Viewer → App routes: uses
- App routes → Authentication UI: routes to
frontend/src/app/routes/route.jsx - App routes → Movie discovery: routes to
frontend/src/app/routes/route.jsx - App routes → Admin content tools: routes to
frontend/src/app/routes/route.jsx - App routes → Watch parties: provides context
frontend/src/app/routes/route.jsx - Viewer → Watch experience: watches films
- Watch experience → Movie API client: loads movie data
frontend/src/modules/streaming/hooks/useWatchPage.js - Admin content tools → Movie API client: deletes episode
frontend/src/modules/admin/content/SeasonManager.jsx - App routes → Chatbot widget: optional feature
- Viewer → Platform API: uses platform
- Platform API → Accounts: serves auth
- Platform API → Streaming catalog: serves catalog
- Platform API → Comments and ratings: serves comments
- Platform API → Watchlist: serves watchlist
- Platform API → Viewing history: serves history
- Platform API → Subscriptions: serves payments
- Platform API → Admin and analytics: serves admin
- Platform API → Meeting sessions: serves meetings
- Meeting sessions → Realtime sockets: realtime events
- Viewer → Chatbot widget: asks for recommendations
- Chat and ingest API → Catalog ingestion: runs ingestion
backend-python/ai-chatbot/src/api/v1/ingestion_router.py - Catalog ingestion → Catalog data loader: loads catalog
backend-python/ai-chatbot/src/ingestion/indexer.py - Catalog ingestion → Document chunking: chunks documents
backend-python/ai-chatbot/src/ingestion/indexer.py - Catalog ingestion → Vector store: stores chunks
backend-python/ai-chatbot/src/ingestion/indexer.py - Catalog ingestion → Hybrid search: builds keyword index
backend-python/ai-chatbot/src/ingestion/indexer.py - Chat orchestration → Context retrieval: retrieves context
backend-python/ai-chatbot/src/chat/service.py - Chat orchestration → Response generation: generates answer
backend-python/ai-chatbot/src/chat/service.py - Chat orchestration → Chat history: reads and writes
backend-python/ai-chatbot/src/chat/service.py - Context retrieval → Hybrid search: searches
backend-python/ai-chatbot/src/retrieval/retriever.py - Context retrieval → Result reranking: reranks results
backend-python/ai-chatbot/src/retrieval/retriever.py - Chat history → MongoDB: persists conversations
backend-python/ai-chatbot/src/history/repository.py - RAG composition → Chat orchestration: wires service
backend-python/ai-chatbot/src/pipeline/rag_pipeline.py - RAG composition → Catalog ingestion: wires ingestion
backend-python/ai-chatbot/src/pipeline/rag_pipeline.py - Video processor → Video processor: processes video
backend-python/video-processor/src/services/video_processor.py