Description: A simple Python Flask application that creates short and memorable URLs for long links, making sharing and accessing them easier. It's easy to install, customize, and deploy.
This repository contains a Python project built using the Flask framework. It showcases how to create a web application using Flask and utilizes the Flask-WTF extension for form handling.
- Python 3.x
- Flask
- Flask-WTF
-
Clone the repository to your local machine:
git clone https://github.com/shivamverma26/link-shortner.git
-
Navigate to the project directory:
cd link-shortner
-
Install the required module using
pip
:pip install flask pip install flask-wtf
This will install Flask and Flask-WTF.
-
Start the Flask development server:
python app.py
-
Open a web browser and visit
http://localhost:5000
to access the application.
The project has the following structure:
flask-python-project/
├── app.py
├── forms.py
├── templates/
│ ├── base.html
│ └── index.html
└── README.md
app.py
: The main Flask application file.forms.py
: Contains the Flask-WTF form definition.templates/
: Directory containing HTML templates.base.html
: Base template file with common HTML structure.index.html
: Home page template file.
README.md
: This file, providing information about the project.