Skip to content

Vanshdeveloper/shorty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🔗 Shorty - URL Shortener

A sleek, modern URL shortener web application built with Flask and HTML/CSS. Convert long URLs into short, shareable links in seconds!

Python Flask License


✨ Features

  • Instant URL Shortening - Generate short codes in milliseconds
  • 🎨 Beautiful UI - Modern gradient design with smooth animations
  • 📋 One-Click Copy - Copy shortened URLs to clipboard instantly
  • 🔄 Duplicate Detection - Returns existing short code if URL already shortened
  • 💾 Persistent Storage - All links saved in urls.json for future use
  • 🚀 Zero Dependencies - Only Flask required for the backend
  • 📱 Fully Responsive - Works seamlessly on desktop and mobile devices
  • ⌨️ Keyboard Friendly - Press Enter to shorten URLs quickly
  • Time Period - Each link lasts only 12 hours

🛠️ Installation

Prerequisites

  • Python 3.8 or higher
  • pip (Python package manager)

Setup

  1. Clone or download the project:

    cd "Shorty-link shortner"
  2. Install Flask:

    pip install flask
  3. Run the application:

    python app.py
  4. Open your browser: Navigate to http://localhost:5000


🎯 How to Use

  1. Enter a URL - Paste your long URL into the input field
  2. Click Shorten - Press the "Shorten" button (or hit Enter)
  3. Copy Link - Click the "Copy" button to copy the shortened URL
  4. Share - Distribute your short link anywhere!

Example:

  • Original: https://www.example.com/very/long/url/path/that/goes/on/and/on
  • Shortened: http://localhost:5000/aB3xYz

� Troubleshooting

Issue Solution
Port 5000 already in use Change port in app.py or stop the conflicting app
Module not found error Run pip install flask
URLs not persisting Ensure urls.json has write permissions

Happy link shortening! 🚀

About

Shorty - Link Shortener

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published