Frontend Routes - rd-tran/Bulletin GitHub Wiki

Frontend Routes

The components are organized as follows:

  • Root
    • App
      • NavBarContainer
      • (main component goes here)
      • ModalContainer

The following will be rendered in the NavBarContainer.

  • NavBarComponent
    • Rendered if there is NOT a currentUser signed in
      • LoginForm
    • Rendered if there IS a currentUser signed in
      • LogoComponent

The following routes, defined in App, will render components after the NavBarContainer.

  • exact / (Protected Route)
    • SidebarContainer
      • Sidebar
    • NewsFeedContainer
      • Board
        • CreatePostFormContainer
          • PostForm
        • PostIndexContainer
          • PostIndex
            • PostIndexItem
              • EditPostFormContainer
                • PostForm
              • CommentIndexContainer
                • CommentIndex
                  • `CommentIndexItem
                    • EditCommentForm
  • /signup (Auth Route)
    • SignupContainer
      • SignupForm
  • /users/:username
  • ProfileContainer
    • FriendsContainer
    • BoardContainer
      • Board
        • CreatePostFormContainer
          • PostForm
        • PostIndexContainer
          • PostIndex
            • PostIndexItem
              • EditPostFormContainer
                • PostForm
              • CommentIndexContainer
                • CommentIndex
                  • `CommentIndexItem
                    • EditCommentForm
  • /posts/:postId
    • PostShowComponent