Skip to content

moonshadow95/youtube-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Youtube

YouTube Clone with React

Clone coding project with Youtube API and React

Demo Link ⇒ https://moonshadow95.github.io/youtube-react/


🔗 Index

  1. Purpose of this project
  2. Tech Stack
  3. Over View
  4. About Project
  5. Architecture
  6. What I've learned
  7. Issue

1. Purpose of this project

  • Use what I've learned in To-do list
  • Implementing app using react
  • Learning about Public APIs

2. Tech Stack

JavaScript CSS3 HTML5 React Postman

3. Over View

4. About Project

Demo Link ⇒ https://moonshadow95.github.io/youtube-react/

👑 Home Page

- Receive data from the YouTube API to show the title and channel name of the most popular video.
- Adjust the number of videos displayed in a single row as client's window size.

🔎 Searching

- Receiving the keywords entered in input, and use Youtube API to change the videos in the list to appropriate videos.

📺 Detail Page

- Click on a video in the list, Show that video and metadata.
- Responsive designed video and list.

5. Architecture

👑 Most popular videos (default page)

structure1

1. When the app component mounted(useEffect()), get most popular videos using YouTube API.
2. Send props to video list component, video item component.
3. Render video items in video list.

🔎 Search by keyword

structure2

1. Get keyword from input.
2. App state has changed.
3. Get the corresponding videos.
4. Update and render video list and item.

📺 Play video

structure3

1. Video click.
2. App state has changed.
3. Get clicked item's video url using YouTube API.
4. Show the video by ifram tag.

6. 📝 What I've learned

- Understanding 'state' and 'props' of react
- How to use React Hooks
- How to use PostCSS
- How to use Public API and Postman

7. 💥 Issue

I wanted to include channel information in each video item, but there was an issu with over quota.
    => Sometimes I have to make the function simpler for the performence.
    => Distribute the quota using multiple api keys.

About

Youtube clone with react

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors