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

GSSoC: Implement URL Shortening in Backend #107

Closed himanshuraimau closed 1 month ago

himanshuraimau commented 1 month ago

Description:

We need to implement URL shortening functionality in the backend of our project. This involves creating endpoints to generate shortened URLs and handle redirection to the original URLs.

Tasks:

  1. Create Shorten URL Endpoint:

    • Define a POST endpoint to accept original URLs and generate shortened versions.
    • Implement logic to generate unique shortened URLs.
    • Store the original URLs and their corresponding shortened versions in the database.
  2. Redirection Endpoint:

    • Implement a GET endpoint to handle redirection from shortened URLs to the original URLs.
    • Lookup the original URL based on the shortened version and redirect the user appropriately.
  3. Data Persistence:

    • Choose an appropriate database to store the original and shortened URLs.
    • Implement database models and schema for URL storage.
  4. Security Measures:

    • Apply necessary security measures to prevent misuse or abuse of the URL shortening functionality.
    • Implement input validation and sanitization to ensure data integrity and security.
  5. Error Handling:

    • Handle edge cases and error scenarios gracefully, providing informative error messages to users.

Proposed Solution:

Request for Assignment:

I would like to work on this feature as part of GSSoC. Could you please assign this issue to me?

Thank you!

github-actions[bot] commented 1 month ago

Thank you for creating this issue! 🎉 We'll look into it as soon as possible. In the meantime, please make sure to provide all the necessary details and context. If you have any questions or additional information, feel free to add them here. Your contributions are highly appreciated! 😊

You can also check our #24 for guidelines on contributing to this project.

Swarnendu0123 commented 1 month ago

The issue already exists. And I would appreciate it if you write issues on your own, not by taking help from an AI.

himanshuraimau commented 1 month ago

Ok. Actually I was writing with it just to elaborate on the issue. But from now onwards I will try to write it on my own. Thanks !

github-actions[bot] commented 1 month ago

Hello @himanshuraimau! Your issue #107 has been closed. Thank you for your contribution!