HackYourFuture / class22-project

0 stars 9 forks source link

News Feed #9

Open aalhommada opened 5 years ago

aalhommada commented 5 years ago

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.

ShyarK commented 5 years ago

Finished the first part of front -end, needs to be linked to login page when the user is not authenticated.

aalhommada commented 5 years ago

Add the links to the developer profile, and post page, if the user is authenticated, and if not redirect him to the register page

hnnhack commented 5 years ago

Hey Guys you already finished as well. Well done...