URL Shortener Service on Flask Framework.
$ pip install pipenv
$ git clone https://github.com/mr-nsin/url_shortner.git
$ pipenv install
$ python3 app.py
Test the app using postman by invoking below endpoint.
http://localhost:105/?original_url=https://google.com
{
"date_created": "07-22-2021",
"original_url": "https://google.com",
"short_url": "http://localhost:105/Lnj",
"visits": 1
}
http://localhost:105/Lnj