URL Shortener that makes use of LowDB to store & search for saved URLs.
- Copy function, let's try DOM way but ClipboardJS is the last resort.
- Add Copy button next to the
userInput
field.
- Add Copy button next to the
- Add favicon.
- BulmaCSS
- ClipboardJS
- Icons8 for favicon.
These scripts can help you connect and make direct calls to the API Endpoint, needs some configuration. These scripts require you to have
xclip
installed for clipboard interaction, andjq
for JSON parsing.
oblique.py
,oblique.sh
Accepts
longurl
parameter,./oblique.py longurl_here
.shorten
A bash script written to access the backend privately configured in order to generate different shortened link compared to the backend. Accepts
longurl
parameter as the first argument like./shorten longurl
or simply execute the script./shorten
.
Let me use the term
BACKEND
to denote the server's root domain.
- POST -
BACKEND/create
link
= string (long URL)auth
= string (pms
by default for now) - POST -
BACKEND/find
shortLink
= string (shortened URL id) - POST -
BACKEND/clear
(Not quite sure if I want to implement it)auth
= string (admin key to clear the database)
- LowDB
- Bluebird Promise
Openodeforhostingthe backend, not anymore! :D
Courtesy to @rafasc & @rewt at Freenode#git.