Sample implementation: https://tsbookstore.netlify.app/
- Start simple, create the auth component.
- It should show a "login" button with a click handler to call the
getUser
api method. (Remember that all API methods return promises). - When logged, it should display the user's name and profile picture
- It should show a "login" button with a click handler to call the
- Book Select: List all book titles in a select type of component.
- Use the
fetchBooks
api method. - When a book title is selected, show the book details bellow the select.
- Use the
- Book details
- Book details should be a separate component.
- Display the book's title, author, image and tags
- Similar books (You might also like)
- To display similar books, use the
fetchBooksByTags
api method. - The
fetchBooksByTags
will return an array of all books with matching tags, so make sure to filter the results to exclude the currently selected book.
- To display similar books, use the