{"id":29488052,"url":"https://github.com/shra2703/cineflix","last_synced_at":"2026-04-30T08:42:07.942Z","repository":{"id":304614662,"uuid":"1019320765","full_name":"Shra2703/CineFlix","owner":"Shra2703","description":"CineFlix is a modern movie and TV streaming web app — a clone inspired by platforms like Netflix, JioCinema, and Disney+ Hotstar. Built using React, Tailwind CSS, and React Query, CineFlix integrates Firebase authentication and TMDb API to deliver an optimized user experience.","archived":false,"fork":false,"pushed_at":"2025-07-14T08:02:32.000Z","size":130,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-14T09:38:59.868Z","etag":null,"topics":["api","html-css-javascript","react","react-hooks","react-query","react-redux","react-router","reactjs","responsive-design","tailwindcss","tailwindui","tanstack-react-query"],"latest_commit_sha":null,"homepage":"https://cineflix-web.netlify.app","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Shra2703.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-14T06:38:03.000Z","updated_at":"2025-07-14T08:02:35.000Z","dependencies_parsed_at":"2025-07-14T09:39:03.339Z","dependency_job_id":"ed124240-1cc5-4bfb-98a9-c1229e44d0ff","html_url":"https://github.com/Shra2703/CineFlix","commit_stats":null,"previous_names":["shra2703/cineflix"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/Shra2703/CineFlix","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shra2703%2FCineFlix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shra2703%2FCineFlix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shra2703%2FCineFlix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shra2703%2FCineFlix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Shra2703","download_url":"https://codeload.github.com/Shra2703/CineFlix/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shra2703%2FCineFlix/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265424999,"owners_count":23762890,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","html-css-javascript","react","react-hooks","react-query","react-redux","react-router","reactjs","responsive-design","tailwindcss","tailwindui","tanstack-react-query"],"created_at":"2025-07-15T09:21:34.098Z","updated_at":"2026-04-30T08:42:07.913Z","avatar_url":"https://github.com/Shra2703.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🎬 CineFlix\n\n**CineFlix** is a modern movie and TV streaming web app — a clone inspired by platforms like **Netflix**, **JioCinema**, and **Disney+ Hotstar**. Built using **React**, **Tailwind CSS**, and **React Query**, CineFlix integrates Firebase authentication and TMDb API to deliver an optimized user experience.\n\n---\n\n## 🚀 Live Demo\n\n🌐 **Live App:** [https://cineflix-web.netlify.app](https://cineflix-web.netlify.app)\n\nClick the link above to explore CineFlix live — browse movies, watch trailers, and search content from TMDb. 🔍🍿\n\n---\n\n## 🧰 Tech Stack\n\n- **React.js** – Frontend UI framework\n- **Tailwind CSS** – Utility-first CSS for styling\n- **React Query (TanStack Query)** – API data fetching and caching\n- **Redux** – For global state management (e.g., auth state, search results)\n- **Firebase Authentication** – Email/password login\n- **TMDb API** – Movie \u0026 TV show data source\n- **React Router DOM** – Client-side routing\n\n---\n\n## 🧠 State Management\n\nCineFlix uses both **Redux** and **React Query**:\n\n- 🔄 **Redux** is used for managing global UI state such as:\n  - Auth state (is the user logged in?)\n  - Search results\n  - Current movie/show details\n- ⚡ **React Query** handles remote data fetching and caching from the TMDb API\n- 🔥 This combination ensures better **performance**, **state consistency**, and **scalability**\n\n## 🔐 Authentication\n\n- Integrated with **Firebase Auth**\n- **Sign Up** form includes: Name, Email, and Password\n- User’s **initials** (from name) are shown as a circular avatar in the navbar\n- **Protected Routes**: Home (Browse) page and others are **restricted to logged-in users only**\n- Authentication state is persisted across sessions\n\n---\n\n## 📂 Pages \u0026 Features\n\n### 🔒 Sign In / Sign Up Pages(`/`)\n\n- User can register and log in using name, email and password\n- Built using Firebase Auth and React hooks\n- Basic form validations\n\n### 🏠 Bowse Page (`/browse`)\n\n- **Protected page**, accessible only after login\n- Displays movie/TV categories fetched from TMDb:\n  - Now Playing\n  - Popular Movies\n  - Upcoming Movies\n  - Top Rated Movies\n  - Latest Shows\n  - On the Air Shows\n  - Top Rated Shows\n  - Popular Shows\n\n### 📄 Details Page for movies (`/browse/details-movies/:id`)\n\n- Shows in-depth movie info\n- Includes:\n  - Title, Poster, Overview, Rating, Release Date\n  - Related Recommendations\n  - Trailers, Teasers, Featurettes via YouTube\n\n### 📄 Details Page for shows (`/browse/details-shows/:id`)\n\n- Shows in-depth movie info\n- Includes:\n  - Title, Poster, Overview, Rating, Release Date\n  - Related Recommendations\n  - Trailers, Teasers, Featurettes via YouTube\n\n### 🎥 Video Page (`browse/details-movies/:id/video/:videoKey`)\n\n- Clean UI for playing selected trailers or teasers\n\n### 🔍 Explore/Search Page (`/explore`)\n\n- Search for movies or shows using TMDb\n- **Debounced search** for optimized API requests\n- Real-time results as the user types\n\n---\n\n## 🎨 UI Features\n\n- Netflix-style layout and styling\n- **Navbar** includes:\n  - Logo\n  - Search Icon\n  - **User Avatar with Initials** (e.g. \"US\") from Firebase Auth\n- Fully **responsive design**\n- Consistent card layouts for movies and shows\n\n---\n\n## ⚙️ Performance Optimizations\n\n- ✅ **Debouncing** on search input\n- ✅ **Code Splitting** with `React.lazy` \u0026 `Suspense`\n- ✅ **React Query Caching** to prevent redundant API calls\n- ✅ Environment variables for sensitive API keys\n\n---\n\n## 🏁 Getting Started\n\n### 1. Clone the repository\n\n```bash\n# Clone the repository\ngit clone https://github.com/your-username/cineflix.git\ncd cineflix\n\n# Install dependencies\nnpm install\n\n# Run the app\nnpm start\n```\n\n### 2. Add environments variables\n\n```bash\n# Add your environment variables\n# .env file\nVITE_TMDB_API_KEY=your_tmdb_key\nVITE_FIREBASE_API_KEY=your_firebase_api_key\n# ...other Firebase config\n```\n\n---\n\n## 📊 Project Difficulty Level\n\n\u003e **Level:** 🟨 Medium\n\nThis project is ideal for **intermediate frontend developers** who want to practice:\n\n- Firebase Authentication\n- API integration with React Query\n- Protected Routes and Routing\n- Performance optimizations (debouncing, code-splitting)\n- Responsive UI design using Tailwind CSS\n\n---\n\n## 🚀 Future Enhancements\n\n- ❤️ Watchlist / Favorites functionality\n- 🌍 Multi-language support\n- 🌓 Dark mode toggle\n- 🔔 Add toast notifications (e.g., login success, errors)\n\n---\n\n## 🤝 Acknowledgements\n\n- [TMDb](https://www.themoviedb.org/) – for providing an amazing free API for movies and TV shows\n- [Firebase](https://firebase.google.com/) – for easy and scalable authentication\n- [React Query](https://tanstack.com/query/latest) – for powerful data fetching and caching\n- [React Router](https://reactrouter.com/) – for client-side routing\n\n---\n\n## 📝 License\n\nThis project is licensed under the **MIT License**.  \nYou are free to use, modify, and distribute this project for personal and commercial purposes.\n\n---\n\n## 👤 Author\n\n**Shraddha Goyal**  \n[GitHub Profile](https://github.com/Shra2703)  \nFeel free to connect or collaborate!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshra2703%2Fcineflix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshra2703%2Fcineflix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshra2703%2Fcineflix/lists"}