You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There will be a top level menu item called Channels
Only members will be able to see that menu item
That menu item goes to page that lists all of the channels.
Implementation Todos
Front end:
Add "Channels" to top nav, for members/admins only
"Channels" on top nav should link to a page (create the page under /javascript/src/main/pages and add it to App.js as a AuthorizedRoute)
The page should link to a component (added under /javascript/src/main/components) that uses BootstrapTable to display a list of channels, initially fake hard coded channels.
Once the backend routes are in place, instead of fake hard coded channels, display the real channels. This involves using useSWR to get the data from the back end.
Back end:
Add a ChannelRepository class that corresponds to the channels collection in the MongoDB database.
Add a ChannelDocument class that corresponds to the document (the JSON object) for each channel.
Add a ChannelsController class that creates API routes for channels. It should have a route /api/members/channels that is available only to members/admins that retrieives a list of channels.
Testing:
Front end test coverage should be as close to 100% as possible (from javascript subdirectory, use npm run coverage)
Back end test coverage should be as close to 100% as possible (from top dir, use mvn test jacoco:report -Dskip.npm)
The text was updated successfully, but these errors were encountered:
Acceptance Criteria
Implementation Todos
Front end:
/javascript/src/main/pages
and add it toApp.js
as aAuthorizedRoute
)/javascript/src/main/components
) that usesBootstrapTable
to display a list of channels, initially fake hard coded channels.useSWR
to get the data from the back end.Back end:
ChannelRepository
class that corresponds to the channels collection in the MongoDB database.ChannelDocument
class that corresponds to the document (the JSON object) for each channel.ChannelsController
class that creates API routes for channels. It should have a route/api/members/channels
that is available only to members/admins that retrieives a list of channels.Testing:
javascript
subdirectory, usenpm run coverage
)mvn test jacoco:report -Dskip.npm
)The text was updated successfully, but these errors were encountered: