A "useful" tool for turning hyperlinks into redirects in the name of shortening hyperlinks! 🧠 🧑‍🔬
Go to file
2024-01-06 13:45:20 -05:00
bin VERY IMPORTANT CHANGE 2023-11-17 20:56:18 -05:00
lib Use the new Logger plugin 2024-01-06 13:18:45 -05:00
t lil cleanup 2023-11-17 21:04:48 -05:00
templates HTML validator says this should be unquoted; new TODOs 2023-11-13 21:55:48 -05:00
.gitignore Initial commit 2023-08-29 18:41:56 -04:00
Dockerfile podman and tests cope 2024-01-06 13:45:20 -05:00
LICENSE Initial commit 2023-08-29 18:41:56 -04:00
META6.json Offload some stuff to Helpers class 2023-11-13 21:38:00 -05:00
README.md HEH... 2023-11-13 21:56:36 -05:00

Hyperlink-Redirect

A "useful" tool for turning hyperlinks into redirects in the name of shortening hyperlinks! 🧠 🧑‍🔬

Run locally

Install dependencies

zef -v install --deps-only .

Run the guy

./bin/hyperlink-redirect

Container stuff

Build

podman build -t hyperlink-redirect .

Tag

podman tag hyperlink-redirect \
    git.minimally.online/swaggboi_priv/hyperlink-redirect

Push

podman push git.minimally.online/swaggboi_priv/hyperlink-redirect

Pull

podman pull git.minimally.online/swaggboi_priv/hyperlink-redirect

Run

podman run -dt --rm --name hyperlink-redirect -p 3003:3000 \
    hyperlink-redirect

Generate unit file

podman generate systemd --files --new --name hyperlink-redirect

TODO

  1. Charset should be utf-8 not utf8 (in Content-Type response header)
  2. Verify status of meta-refresh; should it be 200 or 3xx?
  3. Tests
  4. Test UTF-8 chars in return-url