Nicolai Ort 2bd82ceb01
All checks were successful
ci/woodpecker/push/build Pipeline was successful
Merge branch 'main' of git.odit.services:kauft.es/linkylinky
2023-11-04 16:43:38 +01:00
2021-08-14 11:50:03 +02:00
2021-08-14 10:44:41 +02:00
2022-02-02 15:33:38 +01:00
2021-08-14 12:56:02 +02:00
2021-08-14 16:00:45 +02:00
2022-01-12 18:17:50 +01:00
2021-10-15 16:23:21 +02:00
2022-04-30 12:47:14 +00:00

LinkyLinky 🔗

A small url shortener, originaly developed for kauft.es

Features

  • Url shortinging to 18-byte hex ids
  • Special shortening "providers" for well-used services

Provider patterns

The base pattern is always baseurl/providerOrShortCode

Provider Pattern Resolves to Example Notes
Native (Shortcode) /id Whatever the database entry points to https://kauft.es/den-hut None
YouTube (Video) /yt/id https://youtu.be/id https://kauft.es/yt/dQw4w9WgXcQ None
YouTube (Playlist) /ytpl/id https://youtube.com/playlist?list=id https://kauft.es/ytpl/PLKIxB9vhdS_3x0A5za3mmu1wdoolgRQ65 Remember: Private playlists will result in user-side errors
Amazon /a/id https://amazon.de/dp/id https://kauft.es/a/B08Z2TXCPY Recognizes all kind of cursed amazon urls (+smile and others)
eBay /e/id https://ebay.de/itm/id https://kauft.es/e/373831556670 Only tested with German eBay
Reddit /r/id https://redd.it/id https://kauft.es/r/4vapin Powered by the awesome work of u/TheAppleFreak https://kauft.es/r/4vapin

Dev Setup 🛠

Runs on port 3000

Yarn

yarn
yarn migrate
yarn dev

NPM

npm i
npm run migrate
npm run dev

Docker 🐳

Runs on port 3000

docker-compose build
docker-compose up
Description
Url shortner
Readme 5.5 MiB
Languages
JavaScript 98.3%
Dockerfile 1.7%