Url shortner
Go to file
Nicolai Ort 4ee8de47cf
continuous-integration/drone/push Build is passing Details
🚀RELEASE 0.7.0
2022-01-12 18:04:27 +01:00
migrations Added migration for clientside redirects 2021-09-25 18:25:53 +02:00
src Now recognizing r/ pattern 2022-01-12 17:54:50 +01:00
.drone.yml Added tag builds 2021-08-14 10:40:16 +02:00
.env Get all api endpoints 2021-08-14 11:50:03 +02:00
.gitignore add lockfile [skip-ci] 2021-08-14 10:44:41 +02:00
CHANGELOG.md 🚀RELEASE 0.7.0 2022-01-12 18:04:27 +01:00
Dockerfile Removed yarn lock copy 2022-01-12 17:40:29 +01:00
LICENSE Added license 2021-08-14 16:00:45 +02:00
README.md Added the new providers to the readme 2022-01-12 18:04:14 +01:00
docker-compose.yml Added optional db volume to docker-compose 2021-08-14 13:09:40 +02:00
knexfile.js Prod db now resides in db folder 2021-08-14 12:56:02 +02:00
package.json 🚀RELEASE 0.7.0 2022-01-12 18:04:27 +01:00
renovate.json Enabled dep dashboard 2021-10-15 16:23:21 +02:00

README.md

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

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

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