This is a simple flask app which takes an URL and shortens it. This shortened verion of the URL redirects to the user to the long URL.
For each long URL given by the user the application randomly generates an alphabetical combination which redirects to the long URL.
Steps to install in local system:
-
Download the above code
-
Open the code in pycharm/vscode or any other code editing platforms
-
Before Running the code, run this command in terminal pip3 install Flask Flask-SQLAlchemy
-
Run the code
-
Open http://127.0.0.7:5000 in web browser
-
Copy one URL link and paste it in input field and click submit
-
You will get the count of the url how many times it has been visited
-
You will get the short url displayed on the screen to share along with count