A React + Vite web application that allows users to search for YouTube channels and view their top N ( users can select the number ) videos. The app uses the YouTube API to fetch data and is styled with CSS.
- Search for YouTube channels by name
- View top N videos from a selected channel
- Responsive design with CSS
Make sure you have the following installed:
-
Clone the repository:
git clone https://github.com/Sagnik-Coder24/You-Tube.git cd You-Tube
-
Install dependencies:
yarn install # or npm install
-
Set up your YouTube Data API Key:
- Create a
.env
file in the root directory and add the following environment variable:
VITE_YOUTUBE_API_KEY=your_youtube_api_key
- Create a
-
Start the development server:
yarn dev # or npm run dev
-
Open your browser and go to
http://localhost:5173
to see the app in action.
-
Build the app for production:
yarn build # or npm run build
-
Deploy to Netlify:
- Push your code to a GitHub repository.
- Go to Netlify and log in.
- Click on "New site from Git" and connect your GitHub account.
- Select your repository and configure the build settings:
- Build command:
yarn build
ornpm run build
- Publish directory:
dist
(orbuild
if you’re using Create React App)
- Build command:
- Click "Deploy site".
Netlify will automatically build and deploy your site. You can find your live site URL in the Netlify dashboard.
- Enter a YouTube channel name in the search bar.
- Click on a channel from the search results to view its top N videos.
- Adjust the number of videos displayed using the provided input field.
We welcome contributions from the community! Feel free to open issues and pull requests to suggest improvements, add new features, or fix bugs. Here’s how you can contribute:
- Fork the repository
- Create a new branch (
git checkout -b feature-branch
) - Make your changes
- Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin feature-branch
) - Open a pull request
If you have suggestions or feedback on how to improve this project, feel free to post them on our GitHub Issues page. We love hearing your ideas and collaborating with the community!