Skip to content

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.

Notifications You must be signed in to change notification settings

shivamverma26/link-shortner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published