A short url web api service built with Python 3.8 using Redis
docker-compose build
export ROOT_DIR=`pwd`
docker-compose up -d
docker-compose down
$ curl "http://localhost:8080/api/add?url=https://www.example.com"
{"data":{"origin":"https://www.example.com","short":"N2YxYz"},"success":true}
$ curl http://localhost:8080/N2YxYz
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>Redirecting...</title>
<h1>Redirecting...</h1>
<p>You should be redirected automatically to target URL: <a href="https://www.example.com">https://www.example.com</a>. If not click the link.%