Skip to content
Gregory Del Carlo edited this page Feb 8, 2021 · 9 revisions

Html

  • root to: “static_pages/root”
    • static root page for react to load into

API backend

Users

  • index
    • GET “/api/users”
      • Return all users
  • show
    • GET “/api/users/:id”
      • Return single user
  • update
    • POST “/api/users/:id”
      • update database with new information for a user
  • edit
    • GET “/api/users/:id/edit”
      • returns previous info for a user
  • destroy
    • DELETE “/api/users/:id”
      • remove a user

Whiskey

  • index
    • GET “/api/whiskey”
      • return all whiskeys
  • show
    • GET “/api/whiskey/:id”
      • return single whiskey with reviews
  • update
    • POST “/api/whiskey/:id”
      • updates whiskey with new information
  • edit
    • GET “/api/whiskey/:id/edit”
      • returns previous information on a whiskey
  • destroy
    • DELETE “/api/whiskey/:id”
      • deletes a whiskey

Reviews

  • show
    • GET “/api/reviews/:id”
      • returns single review with comments
  • update
    • POST “/api/reviews/:id”
      • updates a review with new information
  • edit
    • GET “/api/reviews/:id/edit”
      • returns old information on a review
  • destroy
    • DELETE “/api/reviews/:id”
      • delete a review

Comments

  • update
    • POST “/api/comments/:comment_id”
      • updates a comment with new information
  • edit
    • GET “/api/comments/:comment_id/edit”
      • gets previous information on a comment
  • destroy
    • DELETE “/api/comments/:comment_id”
      • deletes a comment

Whiskey List

  • index
    • GET “/api/lists”
      • Return all lists filtered by frontend
  • show
    • GET “/api/lists/:id”
      • return single list
  • update
    • POST “/api/lists/:id”
      • updates a list name
  • edit
    • GET “/api/lists/:id/edit”
      • returns old list name
  • destroy
    • DELETE “/api/lists/:id”
      • delete a list

Session

  • create
    • POST "/api/session"
      • create new session
  • destroy
    • DELETE "/api/session"
      • destroy current session

Frontend Routes

Users

  • UsersIndexContainer
    • Used for rendering all users, in a container to map filtering functions to the presentational component
  • UserShow
    • Show a single user, backend logic returns correct user
  • UserCreate
    • Renders a form to create a new user
  • UserEdit
    • Edits and updates a user's information

Whiskey

  • WhiskeyIndexContainer
    • Used for rendering all drinks, and is filtered by selectors in container
  • WhiskeyShow
    • Render's a single whiskey's information
  • WhiskeyCreate
    • renders a form to create a new whiskey
  • WhiskeyEdit
    • Edits and updates a whiskey's information

Reviews

  • ReviewsIndexContainer
    • Container for filtering and then rendering reviews for a certain whiskey
  • ReviewShow
    • Shows a single reviews details and comments
  • ReviewEdit
    • Edits and updates a single review

Comments

  • CommentsIndexContainer
    • Works the same as ReviewsIndex but for comments
  • CommentShow
    • Shows a single comment
  • CommentEdit
    • Renders page to edit and update a comments information

Whiskey List

  • ListIndexContainer
    • Shows all of a users list, filtered by selectors
  • ListShow
    • Shows a single list and its drinks
  • ListCreate
    • Create a new list

Session

  • SignupContainer
    • Form for a user to Signup
  • LoginContainer
    • Form for a user to Login

Clone this wiki locally