lorddesert / link-shortener

A simple link shortener made with music and Next.js

Home Page:https://ld-linq.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Link shortener..

Bugs

  • Font doesn't load properly Create sort of lorddesert.xyz/links ??

  • lordlinks.vercel.app

  • linq.vercel.app <- try this

I think the idea being building something that you can actually use, like in your daily basis. Try building it for you and then deliver it as may like?

  • [?] Re design the loader?
  • Add pending state when submitting.
  • [?] Add a click/used count field on link DB model. Last used?
  • Elaborate design? xD.
  • Auth for matching links with users.
  • Connect Supabase.
  • Store data in supabase.
  • [?] Retrieve 10 last links and display them in the home page.
  • [?] Make a server route to get the 10 last link creations.
  • [?] Change Title and favicon of the app.

Possible changes

  • [?] Add the option to let the user create his own short keys.
    • User would enter the short key, check on DB if short key EXISTS ONLY IN HIS ACCOUNT.
      1. Create a new link with user-provided short key.
      2. ERROR: Trying to create a short key with an already existing short key.
  • [?] Add last time used.
  • [?] If I want to make it personal use only or not, I can provide a special auth code or key that goes into the form that is used on the app when creating a new link.

Short link form

[?] Takes time, put a loader state.

Comments or possible changes /0_0/

  • Change structure for links:
{
  "links": [
    {
      "id": "123123",
      "userID": "asdasd",
      "clickCount": 3,
      "lastTimeUsed": "20-12-2000",
      "url": {
        "original": "String",
        "short": "String" // Would always be 6 characters long?
      }
    }
  ]
}


// Or...
{
  "url": {
    "original": "String",
    "short": "String"
  }
}

About

A simple link shortener made with music and Next.js

https://ld-linq.vercel.app


Languages

Language:TypeScript 94.6%Language:CSS 4.7%Language:JavaScript 0.7%