npm i
/items
route in the browser: http://localhost:3004/items. The starter code contains seed data for items, and a single route /items
./
) path that renders an HTML page with a button. When a user clicks the button, make an AJAX request to /items
and use the response data to render an HTML element for each item./items
displays a button for each item./items/:id
that responds with the relevant item's description. We recognise that we may already have item descriptions from our Base implementation above, but this is to practise lazy-loading data where we may not want to retrieve all item data upfront, because doing so would slow down our apps./categories/:category_id/items
that returns all items for a given category. When a user clicks on a category button, make a request to the relevant route and render a list of items that belongs to that category.