Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link shortener #159

Open
5 tasks
rotimi-best opened this issue Feb 11, 2024 · 2 comments
Open
5 tasks

Link shortener #159

rotimi-best opened this issue Feb 11, 2024 · 2 comments
Assignees

Comments

@rotimi-best
Copy link
Owner

Feature Description

This feature is a backend functionality to shorten our long urls.

Specification:

  1. Via an REST API I should be able to send a long URL and it should return a short url.
  2. When a request hits that API it should get the URL from the db and redirect to it.
  3. The short url should be stored in supabase
  4. There should be a ratelimiting functionality with Redis

Use Case

We have 2 places where this is very useful:

  1. The course landing page.
    Currently:: https://app.classroomio.com/course/amazing-live-course-1707674497323
    Shortened version will be: https://oncws.com/sfUslKq1

  2. Course Invite Link
    Currently the URL is: https://app.classroomio.com/invite/s/eyJncm91cElkIjoiNGI5NTJkYmUtZDJhNy00NGE3LWE0NWEtNDQ4Njg3NTE5ZmE4IiwibmFtZSI6IjEwIGxhd3Mgb2YgbGVhZGVyc2fjsfjwrtOUfs0aW9uIjoiSW4gdGhpcyBjb3Vyc2UsIHlvdSB3aWxsIGV4cGxvcmUgdGhlIHByaW5jaXBsZXMgYW5kIHByYWN0aWNlcyB0aGF0IGRlZmluZSBlZmZlY3RpdmUgbGVhZGVyc2hpcC4gR2FpbiBrbm93bGVkZ2Ugb24gdGhlIDEwIGZ1bmRhbWVudGFsIGxhd3Mgb2YgbGVhZGVyc2hpcCB0byBlbmhhbmNlIHlvdXIgYWJpbGl0aWVzIGFzIGEgc3VjY2Vzc2Z1bCBsZWFkZXIuIiwib3JnU2l0ZU5hbWUiOiJsZWFkZXJzaGlwIn0%3D

Shortened: https://oncws.com/fawrak

Proposed Solution

There are a couple of solutions:

  1. Use supabase edge functions for this.
  2. Add a honojs package to our repo that implements the redirection service.

Alternatives (optional)

Curious if there are any other solutions

Additional Context

No response

Please check the boxes that apply to this feature request.

  • I have searched the existing feature requests to make sure this is not a duplicate.
  • I have provided a detailed description of the requested feature.
  • I have explained the use case or scenario for this feature.
  • I have included any relevant technical details or design suggestions.
  • I understand that this is a suggestion and that there is no guarantee of implementation.
Copy link

Thanks for the issue, our team will look into it as soon as possible. If you would like to work on this issue, please wait for us to decide if it's ready. To claim an issue that does not have the "needs triage" label, please leave a comment that says ".take". If you have any questions, please reach out to us on Discord or follow up on the issue itself.
For full info on how to contribute, please check out our contributors guide

@Toyin5
Copy link
Contributor

Toyin5 commented Feb 12, 2024

@rotimi-best can I get assigned?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants