VaibhavArora314 / StyleShare

A simple web based platform where users can easily create, explore, and share Tailwind CSS components and designs with fellow users.
https://style-share.vercel.app
MIT License
34 stars 54 forks source link

feat: Added follow/unfollow feature successfully Issue 250 #265

Closed MeetDOD closed 1 week ago

MeetDOD commented 1 week ago

Pull Request Resolves [#250 ]

Title: Added follow/unfollow feature.

Description

  1. In backend, In Prisma added new Follow schema and added in following and followers in User.
  2. Created routes and controllers for followUserController, unfollowUserController and checkFollowStatusController in User also updated getPostcontroller to get total followers of a user.
  3. In frontend, Fetched and get the follow api in Post.tsx, UserProfile and in showprofile also showing total followers to their profile.
  4. Also a user need to logged In and verified to access this feature.
  5. Also a user cannot follow himself.
  6. All design is responsive.

Related Issues

Fixes #250

Changes Made

New features: Added follow/unfollow feature successfully.

Screenshots

image

Video

https://github.com/VaibhavArora314/StyleShare/assets/120380073/bc3f6a9c-69b1-4ca6-a4c4-4cd581e5fab3

I certify that I have carried out the relevant code of conduct and provided the requisite screenshot for validation by submitting this pull request.

Thank You for this contribution.

vercel[bot] commented 1 week ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
style-share ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 22, 2024 7:17am
github-actions[bot] commented 1 week ago

Thank you for submitting your pull request! 🙌 We'll review it as soon as possible. In the meantime, please ensure that your changes align with our CONTRIBUTING.md. If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊

MeetDOD commented 1 week ago

@VaibhavArora314 You and me are pushing to vercel same time, i want to pull again and again now it's done 💀

VaibhavArora314 commented 1 week ago

@VaibhavArora314 You and me are pushing to vercel same time, i want to pull again and again now it's done 💀

Lol, I was just refactoring the code. Anyways, this looks good, give me some time to completely review it.

MeetDOD commented 1 week ago

@VaibhavArora314 You and me are pushing to vercel same time, i want to pull again and again now it's done 💀

Lol, I was just refactoring the code. Anyways, this looks good, give me some time to completely review it.

No, worries I was keep seeing my files where is error than i came to my fork and says @VaibhavArora314 commited 0 sec ago 🗿

VaibhavArora314 commented 1 week ago

Resolve merge conflicts, rest is looking good.

MeetDOD commented 1 week ago

@VaibhavArora314 you merge #267 pr then i will pull in this and then push it to avoid conflicts .

MeetDOD commented 1 week ago

@VaibhavArora314 can you show me the error logs, I don't know where the error is 🤔

VaibhavArora314 commented 1 week ago

image

MeetDOD commented 1 week ago

@VaibhavArora314 Done 👍

VaibhavArora314 commented 1 week ago

image

followers is not readable in light mode

MeetDOD commented 1 week ago

image

followers is not readable in light mode

Okay I will do the changes

MeetDOD commented 1 week ago

@VaibhavArora314 I applied the theme wherever there is a follow/unfollow as well as in button 🙂

github-actions[bot] commented 1 week ago

🎉 Your pull request has been successfully merged! 🎉 Thank you for your valuable contribution to our project. Your efforts are greatly appreciated. Feel free to reach out if you have any more contributions or if there's anything else we can assist you with. Keep up the fantastic work! 🚀