Open LakshmiSowmya04 opened 18 hours ago
I want to work on this issue under hacktoberfest . Can you please assign this issue to me?
I want to work on this issue under hacktoberfest . Can you please assign this issue to me?
I have no issues to assign but to implement this would you like to share how you want to solve?
Like you said after login the user has to be able to see posts only posted by people under the category who have the same college name as the user and they should be able to create posts
So I plan to add a collegeId to the user model in the database so that we have the track of specific colleges and also the authorCollegeId (I was not able to come up with a correct variable name for now) to the post model so that whoever is creating a post must be from specific collegeId .
After that based on the user's collegeId , we can filter the posts related to collegeId , where the user can see see posts only posted by people under the category who have the same college name as the user.
In the frontend part we are going to show the feed component by fetching only college-specific posts and also there will be create post form to create new posts.
Flow will be something like this 1. User Logs in -> 2. The system will fetch the user's college information -> 3. Users can see feeds posted by user's college-specific people -> 4. Users can create new posts via the form.
For starters, I would like to set up the signup and sign-in so that we can have the user's ID in our database and I saw that someone is already assigned to the sign-in and sign-up issue. So I'll be creating my own auth for now and if issue#2 is solved then I'll remove my auth setup and use the updated one
@LakshmiSowmya04 I hope you get an idea of how I'm gonna solve this issue. Looking forward to contributing to this project !!
after login user has to be able to see posts only posted by people under the category who has same college name as the user and there should be able to create posts