oxiton-foundation / click-metrics

Click Matrics is a powerful URL shortening and analytics platform designed to streamline the process of generating short URLs, creating QR codes, and tracking detailed analytics for each link.
https://click-metrics.vercel.app
MIT License
33 stars 49 forks source link

Feature:Implemented User Model and Authentication Routes (Login & Register) with Zod Validation #189

Open ManpreetSingh18 opened 1 week ago

ManpreetSingh18 commented 1 week ago

Related Issue(s)

Description

This pull request aims to implement user authentication for our backend project, including user register and LogIn functionalities. The implementation includes creating a User model, setting up authentication routes, and using Zod for input validation.

Key Features:

Changes Made

Screenshots (if applicable)

https://github.com/oxiton-foundation/click-metrics/assets/72294811/57b1b0ee-9d75-4a2e-8f26-bbf24eaae1ae

When user with same email already exist Screenshot 2024-06-22 130624

N/A

Checklist

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 #24. If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊

ManpreetSingh18 commented 2 days ago

@Swarnendu0123 can you please review this PR?

Swarnendu0123 commented 2 days ago

I have mentioned it multiple times that we are going to use firebase for authentication. We don't need this.

ManpreetSingh18 commented 2 days ago

@Swarnendu0123 I mentioned it before getting it assigned and you assigned it after my message stating the same Mongo db is mentioned in issue and also in the issue itself mongo db is mentioned . Additionally, the documentation includes MongoDB as well. Screenshot 2024-06-27 184105

Swarnendu0123 commented 1 day ago

We will be using mongodb but not for the authentication. We will be using mongodb to store generated links and qrs. We will not store mongodb to store users.

ManpreetSingh18 commented 1 day ago

@Swarnendu0123 ok, I will use Firebase. Now I am supposed to do everything mentioned in issue but in Firebase please check the video. You want that type of work in Firebase. Please confirm same?

Swarnendu0123 commented 1 day ago

I am planning to use the authentication service provided by firebase in this.

ManpreetSingh18 commented 1 day ago

@Swarnendu0123 Here is the updated version of the code

https://github.com/oxiton-foundation/click-metrics/assets/72294811/848bd419-bd70-4cd0-95ee-c31101ffa4ac