Skip to content

rajanprajapati1/You_Tube_Clone

Repository files navigation

YouTube Clone using React and Vite

This project is a YouTube clone built using React and Vite, providing a minimal setup with Hot Module Replacement (HMR) and some ESLint rules. It offers two official plugins for React:

Overview

This application replicates the core functionality of YouTube, allowing users to view videos, search for content, and play videos. It utilizes the YouTube Data API for fetching video details.

Features

  • Search for videos by keywords.
  • View video details including title, description, and channel information.
  • Play videos directly within the application.
  • Responsive design for various screen sizes.

Getting Started

  1. Clone the Repository

    git clone https://github.com/rajanprajapati1/You_Tube_Clone.git
    cd You_Tube_Clone
  2. Install Dependencies

    npm install
  3. Set up API Key

    Obtain a YouTube Data API Key from the Google Developers Console. Add this key to your environment variables or directly in the code where required.

  4. Start the Application

    npm run dev

    This will start the development server and you can access the app at http://localhost:3000.

Project Structure

src/
|-- components/
|   |-- Video.js
|   |-- VideoList.js
|   |-- ...
|-- pages/
|   |-- Home.js
|   |-- VideoDetail.js
|   |-- ...
|-- utils/
|   |-- api.js
|   |-- ...
|-- App.js
|-- index.html
|-- main.js
|-- ...

Adding API Key

Open utils/api.js and replace 'YOUR_API_KEY' with your actual YouTube Data API Key.

const API_KEY = 'YOUR_API_KEY';
export default API_KEY;

Screenshots

Screenshot 1 Screenshot 2

Contributing

If you'd like to contribute to this project, please fork the repository and create a pull request.

License

This project is licensed under the MIT License.

Acknowledgements

  • React Team
  • Vite Team
  • SWC Team

Feel free to customize this template with additional information about your project, technologies used, and any special instructions for contributors. Include screenshots or GIFs to showcase your application.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published