Skip to content

patrick-me/tinyUrl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tinyUrl

A simple tinyUrl


Simple usage

Create URL

curl -d '{"url":"https://ya.ru"}' localhost/short && echo

URL created!
"{\"url\":\"https://ya.ru\",\"short\":\"kc6fc\"}"

Get URL

curl -L localhost/kc6fc

... Redirect to https://ya.ru

Default expiration

  • 48 hours

Docker usage

Compose

docker-compose up

To rebuild use this cmd

docker-compose -f docker-compose.yml up -d --no-deps --build