Skip to content

About

This is an application that lets you view top videos of artists selected from a dropdown menu.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

18 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The YouTubePlaylist application!

Instructions to run the application:

  • This is assuming that nodeJS is already installed on your machine. Click here to see how to install nodeJS.
  • Download the repo as zip.
  • Extract the zip folder.
  • Open terminal and change directory ('cd') into the downloaded folder.
  • Run command 'node app.js' and wait until you see the message 'listening on *:3000. Good to go. Check out the app now!'.
  • Open your browser (chrome prefered) and go here or type 'http://localhost:3000/' into the address bar.
  • You should see videos from my favorite band - Boyce Avenue! Go ahead and select any artist from the dropdown.

Design Decisions:

  • The application is based on nodeJS.
  • The client or the browser calls a function on page load to load top five videos for the default artist.
  • When the user makes any changes to the selection in the dropdown menu, the application calls the same function to load top five videos for the newly selected artist.
  • This function makes a post request to the server and passes an encoded version of the artist name selected. The name is encoded so that it is directly usable in the search query.
  • The server then calls the YouTube API and the response is sent back to the browser.
  • The browser loops through the response to extract the videos and displays them with their respective titles.

About

This is an application that lets you view top videos of artists selected from a dropdown menu.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages