This is a simple URL shortener web application built with Flask and SQLite.
- Shortens long URLs to a shorter and more manageable format.
- Stores the original and shortened URLs in a SQLite database.
- Redirects users to the original URL when they visit the shortened URL.
Make sure you have the following prerequisites installed on your local machine
- Python 3.x: Download Python
- Flask: Install Flask by running
pip install flask
in your command line or terminal. - SQLite: SQLite comes bundled with Python by default, so no additional installation is required.
-
Clone the repository
git clone https://github.com/ezhil56x/URL-Shortener.git
-
Navigate to the cloned repository
cd URL-Shortener
-
Run the following command to start the application
flask run
or
python app.py
-
Open your browser and navigate to
http://localhost:5000/
- Enter the URL you want to shorten in the text box and click on the
Shorten
button. - The shortened URL will be displayed below the text box.
- Click on the shortened URL to visit the original URL.
This project is licensed under the MIT License. See the LICENSE file for more information.