ashleighctucker/OpenTableClone

Favorites (front & back end)

Closed this issue · 0 comments

Will need to:

  • create the models/migrations/versions to add the favorites table to the db
  • add a backend GET /users/:userId/favorites route to see a specific users favorites (query for favorites where the userId of the user currently logged in)
  • add a backend POST /users/:userId/favorites
  • add a backend DELETE /favorites/:id
  • add frontend buttons for favoriting on restaurants (conditionally rendered if logged in)
  • add favorites page to view all the favorites
  • add favorites to profile page (if it does not look to messy, may look like too much with existing reviews)

User Story: Favorites

Create Favorite

  • As a logged in user, I would like to be able favorite a restaurant
  • I would like a visual indicator that the restaurant is one of my favorites
  • I would like to see my favorite restaurants in a list on my profile (or on a favorites page)

Delete Favorite

  • As a logged in user, I would like to be able to delete favorites/ "un-favorite" a restaurant
  • I no longer want to see the favorites indicator on the restaurant
  • I would like the restaurant to no longer be in my favorites list