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
40 stars 68 forks source link

feat: Added admin login logic in backend successfully issue 343 #345

Closed MeetDOD closed 4 months ago

MeetDOD commented 4 months ago

Pull Request Resolve [#343 ]

Title: Added admin login logic in backend successfully.

Description

  1. In backend, In prisma at user add new field i.e isAdmin: bool, In routes created admin folder in that i created controllers for adminLogin and fetching admin profile with adminAuth middleware.
  2. Created routes for both and created zodSchema for admin.
  3. Api is tested in postman and in thunder client and is working fine.

Related Issues

Fixes #343

Changes Made

New features: Added admin login logic in backend.

Screenshots

image

image

image

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 4 months 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 Jul 1, 2024 9:53am
github-actions[bot] commented 4 months 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 4 months ago

@VaibhavArora314 assign the necessary GGSOC labels #343 I am creating this because i am not available tomorrow that's why i created the PR first without your permission. So, please tell me if any changes needed respectively. Thank You 😀

MeetDOD commented 4 months ago

@VaibhavArora314 Just explain me the approach of the code like how i code in the different folder admin/frontend because the code is ready without any issue just the folder approach is not cleared to me.

Please explain me. Thank you 👍

MeetDOD commented 4 months ago

@VaibhavArora314 Done 👍

github-actions[bot] commented 4 months 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! 🚀

MeetDOD commented 4 months ago

@VaibhavArora314 I think it deserve level 3 if possible upon evaluation 😀