PH Tube is a responsive web-based video streaming application where users can browse and watch videos sorted by categories such as music, comedy, tutorials, and more. The application fetches video data from a REST API and presents it in an intuitive, user-friendly interface.
- Category-based Video Browsing: Filter videos by different categories
- Sort by View Count: Organize videos based on popularity
- Responsive Design: Works seamlessly across desktop and mobile devices
- Video Details: View video information including title, author, and view count
- Verified Creator Badges: Easily identify verified content creators
- HTML5: Structure of the web application
- CSS3: Custom styling with variables for consistent theming
- JavaScript: Dynamic content loading and interaction handling
- Tailwind CSS: Utility-first CSS framework for responsive design
- DaisyUI: Component library for Tailwind CSS
- Google Fonts: Poppins font family for typography
GET: https://openapi.programming-hero.com/api/phero-tube/categories
GET: https://openapi.programming-hero.com/api/phero-tube/videos
GET: https://openapi.programming-hero.com/api/phero-tube/category/{categoryId}
Example: https://openapi.programming-hero.com/api/phero-tube/category/1001
GET: https://openapi.programming-hero.com/api/phero-tube/videos?title={videoTitle}
Example: https://openapi.programming-hero.com/api/phero-tube/videos?title=shape
GET: https://openapi.programming-hero.com/api/phero-tube/video/{video_id}
Example: https://openapi.programming-hero.com/api/phero-tube/video/aaac
├── assets/ # Contains images and favicon
├── css/ # CSS stylesheets
├── scripts/ # JavaScript files
├── index.html # Main HTML file
└── tailwind.config.js # Tailwind configuration
-
Clone the repository:
git clone https://github.com/yourusername/ph-tube.git
-
Open the project folder:
cd ph-tube
-
Open
index.html
in your browser or use a local server:# Using Python's built-in server python -m http.server
-
Access the application at
http://localhost:8000
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
- Design inspiration from various video streaming platforms
- API provided by Programming Hero