GitHunt
SH

shivamverma26/link-shortner

This repository contains code for a simple URL shortener web application built using Flask in Python. The app allows users to convert long URLs into short, shareable links. It features a user-friendly interface with URL input validation and unique shortened URLs generated using the secrets module.

link-shortner

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.

Flask Python Project

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.

Requirements

  • Python 3.x
  • Flask
  • Flask-WTF

Installation

  1. Clone the repository to your local machine:

    git clone https://github.com/shivamverma26/link-shortner.git
  2. Navigate to the project directory:

    cd link-shortner
  3. Install the required module using pip:

    pip install flask
    pip install flask-wtf

    This will install Flask and Flask-WTF.

Usage

  1. Start the Flask development server:

    python app.py
  2. Open a web browser and visit http://localhost:5000 to access the application.

Project Structure

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.

Contributors

Created June 8, 2023
Updated August 2, 2023