This is a YouTube clone built using React, Tailwind CSS, and the YouTube Data API (v3) from RapidAPI. It features displaying videos with categories, a responsive design, modals displaying video details, and the option to redirect to YouTube to play the video.
To run this project locally, follow these steps:
Clone the repository:
git clone https://github.com/your-username/your-repository.git
Navigate into the project directory:
cd your-repository
Install dependencies using npm:
npm install
Obtain a YouTube Data API key from RapidAPI.
Create a .env
file in the root of the project and add your API key:
REACT_APP_YOUTUBE_API_KEY=your-api-key-here
Start the development server:
npm start
Open your browser and visit http://localhost:3000
to view the app.
This project uses the YouTube Data API (v3) to fetch videos. You need to provide your own API key to retrieve data from YouTube. Get your API key from RapidAPI.
Contributions are welcome! Here's how you can contribute to this project:
git checkout -b feature/improvement
).git commit -am 'Add some feature'
).git push origin feature/improvement
).This project is licensed under the MIT License. See the LICENSE file for more details.