Search and filter
Nelisa needs to find sales data statistics quickly.
Create a search bar for your Products page. Once that’s working, look at using client-side JavaScript to display the search results after the user has typed three or more characters into the search box.
Read more about searching and Ajax at search.projectcodex.co.
Search more things
Add search bars to your Categories, Sales, and Purchases pages.
Add support for:
- finding products by category name;
- finding sales by product or category name;
- finding purchases by product or category name.
Save your test results again
Let’s save a copy of your tests again. Have a look back at More with Mocha if you need to.
Learning areas
- queries using partial string matching using
likeSQL queries; - using HTTP request parameters using
req.params; - introduction to Ajax for a dynamic search experience;
- introduction to Progressive Enhancement - the journey from a basic search to interactive search.