Your mission, should you choose to accept it, is convert this simple application that outputs a list of book titles, and their corresponding categories, from pure XHR/callback architecture to use promises instead.
Look for hints that I've provided throughout the code.
After you've cloned the repository locally, just run the following commands.
cd lib
npm install && bower install
cd ..
http-server
Then open your browser and hit your web server IP address.
- You should have two XHRs, each performed in their own require module.
- Each module should return a promise for use in the
promises.js
module. - I've included Bootstrap, so use the grid system to build rows for each book.
console.log
everything to ensure you know what's contained in every variable and how the program logic executes.- Update the handlebars file to output all the other properties of the book. You choose the layout and style.
- Populate a
<select>
element with the different book type labels. - When the user selects one of the types, only show books of that type.
- Find another ES6 feature that is supported by Chrome and use it in your project.