Skip to content

Frontend Routes

muntaqam edited this page Jan 4, 2024 · 1 revision

Users

  • Route: /

    • Component: HomePage
    • Description: Landing page that could showcase books and recent reviews.
  • Route: /users/:userId

    • Component: UserDashboard
    • Description: User profile page displaying details, reviews written by the user, and user's ratings.

Session

  • Route: /login

    • Component: SessionForm
    • Description: Page for logging in.
  • Route: /signup

    • Component: SessionForm
    • Description: Page for signing up.

Books

  • Route: /books

    • Component: BooksIndex
    • Description: Lists all books.
  • Route: /books/:bookId

    • Component: BookDetail
    • Description: Detailed view of a specific book, potentially showing ratings and reviews for that book.

Ratings

  • Route: /books/:bookId/rate
    • Component: RatingForm
    • Description: Form to rate a specific book (if not already rated).

Reviews

  • Route: /books/:bookId/reviews

    • Component: ReviewIndex
    • Description: List of reviews for a specific book.
  • Route: /books/:bookId/reviews/new

    • Component: ReviewForm
    • Description: Form to create a new review for a specific book.
  • Route: /reviews/:reviewId/edit

    • Component: ReviewForm
    • Description: Form to edit an existing review.
Clone this wiki locally