Open aalhommada opened 5 years ago
Finished the first part of front -end, needs to be linked to login page when the user is not authenticated.
Add the links to the developer profile, and post page, if the user is authenticated, and if not redirect him to the register page
Hey Guys you already finished as well. Well done...
User Story :
As a user, I would like to see a link in the navbar lead to a page containing the last posts in the app, and when I click on one of the posts it will lead me -if I am authenticated - to post discussion page. and if the user is not authenticated it will redirect him to the register, or login page
Plan for technical implementation
Backend: make a new API route with the endpoint ('API/newsfeed') and fetch the posts from the database to the frontend.
Frontend: make a new component ( newsfeed) and fetch the posts from the backend, and show it in UI.