A python REST based application that generates small URL's for all requests.
https://hub.docker.com/repository/docker/prateek2408/magicurl
-
Start a docker container either in daemon or non-daemon mode- For example-
-
docker run -it --rm -p 2408:2408 prateek2408/magicurl
-
Once the container starts, from another terminal try running-
- curl -XGET http://0.0.0.0:2408
-
This should give you an output like this-
- Welcome to the magicurl utility for more info visit https://github.com/prateek2408/magicurl
-
To create a magic/short URL for any request do-
- curl -XPOST -d "URL=https://mario.com" http://0.0.0.0:2408/shorten
-
You should be getting an output similar to this-