Converting long url to short url using databases
This application needs python to be installed, followed by the installation of pip pip installation, and the installation of MySQL MySQL installation is strongly recommended, but not necessary. Make the appropriate database changes for mydb variable on line 18.
Run the following command to install all dependencies needed.
$ pip install -r requirements.txt
Run the application from terminal by using the following command
$ python3 app.py
After the execution of the command python3 app.py
, it will generate an endpoint on a local port. Access the endpoint from the browser of your choice.
Do you want to make this better? Open an issue and/or a PR on Github. Thanks!
MIT License
Copyright (c) 2018 Deepak Nautiyal