Frontend Routes - Orenshaf/SoundProud GitHub Wiki

Frontend Routes

Our components are organized as follows:

  • Root
    • App
      • NavBar
      • (main component goes here)
      • PlaybackFooter

The following routes, defined in App, will render components between NavBar and PlaybackFooter.

  • /
    • Splash
  • /login
    • SessionForm
  • /signup
    • SessionForm
  • /discover - homepage
    • LikedTracksIndex
      • TracksIndexItem
  • /you/library - also /likes, /playlists, and /albums
    • RecentlyPlayed
      • TracksIndexItem
    • LikedTracksIndex
      • TracksIndexItem
    • Playlists
      • PlaylistItem
  • /upload
    • /uploadTrackForm
  • /users/:userId
    • ProfileComponent
    • AllIndex
      • TracksIndexItem
      • AlbumsIndexItem
      • PlaylistsIndexItem
  • /users/:userId/tracks - also /albums and /playlists
    • TracksIndex
      • TracksIndexItem
  • /users/:userId/:trackId
    • TrackIndexItem

Note: Albums and playlists page will have almost exact same routes as tracks page, just with albums and playlists