A responsive and feature-rich YouTube clone built with React, Vite, TypeScript, and Tailwind CSS, powered by the YouTube Data API v3.
π Live Site: youtube-clone26.netlify.app
π¦ GitHub Repo: github.com/anup-jha26/youtube-clone
- π Search videos, channels, and playlists
- πΊ Watch video details with related content
- π Browse channel playlists and videos
- π¬ View and toggle video comments
- π§ Responsive design with Tailwind CSS
- β‘ Fast build with Vite and TypeScript
- π Integrated with YouTube Data API v3
| Tool | Purpose |
|---|---|
| React + Vite | Frontend framework & bundler |
| TypeScript | Type-safe development |
| Tailwind CSS | Utility-first styling |
| React Router | Client-side routing |
| YouTube API | Data source for content |
git clone https://github.com/anup-jha26/youtube-clone.git
cd youtube-clonenpm install
Create a .env file in the root:
VITE_API_KEY=your_youtube_api_key_here
π You can get an API key from Google Cloud Console.
npm run dev
Open http://localhost:5173 in your browser.
npm run build
The output will be in the dist/ folder.
This project is deployed on Netlify.
- Run npm run build
- Upload the dist/ folder to Netlify
Netlify auto-deploys from:
https://github.com/anup-jha26/youtube-clone
Build settings:
- Build command: npm run build
- Publish directory: dist
youtube-clone/
βββ dist/ # Production build output
βββ public/ # Static assets (logo, icons)
βββ src/ # Source code
β βββ Components/ # Reusable UI components
β βββ Hooks/ # Custom React hooks
β βββ Pages/ # Route-based views
β βββ assets/ # Local images/icons
β βββ utils/ # Helpers & types
β βββ App.tsx # Root component
β βββ main.tsx # Entry point
β βββ index.css # Global styles
βββ index.html # HTML template
βββ package.json # Project metadata
βββ vite.config.ts # Vite configuration
βββ tsconfig.json # TypeScript config
βββ README.md # Project documentation
Pull requests are welcome! For major changes, please open an issue first to discuss what youβd like to change.
This project is open-source and available under the MIT License.
Made with β€οΈ by:
Anup Kumar Jha
π§ aniljha1076@gmail.com
π LinkedIn β anupjha26
π· Logo sourced from Wikimedia Commons