GithubHelp home page GithubHelp logo

music-is-fun's Introduction

Welcome to the new and Improved Itunes!

Okay well maybe its not quite there yet, that's where you come in.

The Setup

You will notice a file named itunes-service.js This file has been setup to get information from the itunes server and return a list of songs from whatever is typed into the input field. You can rest assured that this part of the application is fully functional.

You are now being tasked with handling the data that comes back from the service after clicking the Get Music Button.

The first thing to focus on will be adding the correct information to the screen. You will be doing this through a drawSongs function that will need to be setup in itunes-controller.js

Your drawSongs function will need to accept a parameter of songs maybe call it called (songList)

The songList is an array of objects where each object is a song as illustrated below

songList = [{
  title: 'string - song title',
  albumArt: 'string - url for song album cover art',
  artist: 'string - artistName',
  collection: 'string - album title',
  price: 'number - price of song',
  preview: 'string - url will play the song'
}]

When the user clicks the Get Music Button it runs a function in the itunes-service.js once that code is finished it will call a drawSongs function and pass in the list of songs requested. Thus you will not need to modify any of the code in the itunes-service.js or the getMusic function you will however need to create drawSongs function and pass it as a callback into the .then() statement available in the controller.

Step 1 - Where is the output?

It is your responsibility to update the drawSongs function so the user can actually see the data that is returned from the itunes service.

There are several ways to manipulate the DOM and add these elements. Primarily all of these songs will need to be added to the page I would recommend an easy to target container such as

<ul id="song-list">
  <!--SONGS ADDED DYNAMICALLY HERE-->
</ul>

Step 2 - Prettify with Bootstrap

Styling is a hard area to grade so at a bare minimum you will need to show your understanding of bootstrap classes. The following image is accomplished purely with built in bootstrap classes. Feel free to customize and go crazy with some awesome styles but make it look good and ensure that you are using the grid system so the results are responsive. Also be sure to use at least 2 bootstrap components

Requirements

  • Visualization:
    • All songs are rendered when search button is clicked
    • Bootstrap is utilized to provide styling to the page
    • Each property of the song object is displayed (title, artist, price, album art, preview (hint: "html audio tag"))
  • Functionality:
    • New search will clear out old results

BONUS CHALLENGES

  • Clicking on the title should play the 30 second preview
  • The preview must play without opening a new browser window
  • Clicking play on a title while another song is already playing will stop the previous song and start the new one
  • When you search you will also get movies, try to filter those out

Finished?

When You are finished please submit the url for your github repo to be graded. You are free to work on this however you like but ultimately it needs to be added to your github.

music-is-fun's People

Contributors

markohnsman avatar kenzierlee avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.