-
Notifications
You must be signed in to change notification settings - Fork 0
Frontend Routes
lk340 edited this page Jan 20, 2019
·
1 revision
Our components are organized as follows:
-
Root-
App-
NavBar(position: fixed with logo that links to index page, search input, and explore/likes/profile) - (main component goes here)
Footer (bottom-right in index page, fixed to bottom under 'explore' and 'profile' pages)
-
-
The following routes, defined in App, will render components between NavBar and Footer.
-
/SessionForm (sign-up) (if there is no user signed in)-
PostsIndex(if there is a user signed in)
-
/accounts/signinSessionForm (sign-in)
-
/accounts/editEdit user info
-
/users/:userId-
ProfileComponent (renders profile picture, user info, #posts, #followers, #following, edit profile button and edit account button) -
PostIndexComponent (renders all of user's posts)
-
-
/posts/newPostForm
-
/post/:postIdPostShow
-
/posts/:postId/editPostForm
-
/savedSavedPostsIndex