User Story
As a user, I want to see a list of all items so that I can decide which one I want to view in more detail.
Implementation details
- Write an express route for
GET /api/items that queries the db via Sequelize, sending back all items.
- Create a React component that calls this endpoint via
fetch in a useEffect, and .maps over the data, displaying an item view for each.
User Story
As a user, I want to see a list of all items so that I can decide which one I want to view in more detail.
Implementation details
GET /api/itemsthat queries the db via Sequelize, sending back allitems.fetchin auseEffect, and.maps over the data, displaying anitemview for each.