While developing the front end page to find the relevant posts from the database, a bad decision of not segregating posts based on types were observable. Therefore, post controller needs to be redesigned completely.
Issue 1: Posts not searchable based on University or Program
From the frontend side, the users were supposed to be able to view the relevant posts to a specific university or a program. However, as the current version does not store posts under specific conditions, it needs to be redesigned.
Issue 2: Statistics of posts (Like, View Count) not available
As this was not implemented from the beginning, it will be good to implement this as well.
Acceptance Criteria
[x] Segregate posts by using mongoose discriminator
[ ] Create new endpoints to retrieve posts
[ ] Fix existing endpoint to POST a new post
[ ] Develop functionalities to like/unlike a post
[ ] Develop functionalities to count number of user views
[ ] Develop endpoints to retrieve contents based on likes and views
Issue found
While developing the front end page to find the relevant posts from the database, a bad decision of not segregating posts based on types were observable. Therefore, post controller needs to be redesigned completely.
Issue 1: Posts not searchable based on University or Program
From the frontend side, the users were supposed to be able to view the relevant posts to a specific university or a program. However, as the current version does not store posts under specific conditions, it needs to be redesigned.
Issue 2: Statistics of posts (Like, View Count) not available
As this was not implemented from the beginning, it will be good to implement this as well.
Acceptance Criteria