nss-daycohort11 / promises-promises-jesephoran

promises-promises-jesephoran created by Classroom for GitHub

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JS201 Promises Exercise

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.

Setup

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.

Requirements

  1. You should have two XHRs, each performed in their own require module.
  2. Each module should return a promise for use in the promises.js module.
  3. I've included Bootstrap, so use the grid system to build rows for each book.
  4. console.log everything to ensure you know what's contained in every variable and how the program logic executes.
  5. Update the handlebars file to output all the other properties of the book. You choose the layout and style.

Bonus requirements

Filtering

  1. Populate a <select> element with the different book type labels.
  2. When the user selects one of the types, only show books of that type.

Advanced syntax

  1. Find another ES6 feature that is supported by Chrome and use it in your project.

About

promises-promises-jesephoran created by Classroom for GitHub


Languages

Language:JavaScript 60.4%Language:HTML 38.0%Language:CSS 1.6%