How dibishks/malayalam-youtube works
Project Type and Purpose
• Chithram is a single-page, front-end Angular application (no custom back end) that curates Malayalam videos by category using the YouTube Data API.
• It’s built with Angular CLI, TypeScript, Webpack/Babel, and outputs static assets for deployment (under docs/).
Key Files and Directories
• src/ – application source code:
• app.module.ts – root Angular module
• app.component.* – root component
• components/ – UI components (header, category filter, video grid, video player)
• services/youtube.service.ts – HTTP client for YouTube Data API
• models/ – TypeScript interfaces for API responses and domain objects
• pipes/safe.pipe.ts – sanitize video embed URLs
• angular.json, tsconfig.json, package.json – build/configuration
• docs/ – compiled output (HTML, JS bundles, CSS) ready for static hosting
Runtime Architecture Components
• Browser (Client)
• Static Host (e.g., GitHub Pages, Nginx) serving the Angular bundle
• Angular Application
• AppModule → wires up components, services, pipes
• Components communicate via Inputs/Outputs or the central YouTubeService
• YouTubeService uses HttpClient to call external YouTube Data API
• External Service: YouTube Data API (REST endpoints)
Build & Deployment Pipeline
• Developer writes TS/HTML/SCSS
• Angular CLI invokes Webpack & Babel (per .angular/cache/…)
• Transpile & bundle → docs/ folder (static assets)
• Deploy static assets to hosting