URLShortener is a simple Python-based web application using Flask that shortens long URLs.
- Input a long URL to get a shortened version.
- Redirect from the shortened URL to the original URL.
-
Clone the repository:
git clone https://github.com/YOUR_USERNAME/URLShortener.git cd URLShortener
-
Create a virtual environment and activate it:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the required packages:
pip install -r requirements.txt
-
Run the application:
python app.py
-
Open your web browser and go to
http://127.0.0.1:5000
.
This project is licensed under the MIT License.