Skip to content

This URL shortener application converts long URLs into shorter, more manageable links.

Notifications You must be signed in to change notification settings

ankitdani/Link-Shortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

URL Shortener

This is a URL shortener application built with Java, Spring, Redis and Vaadin. Demo

Overview

This URL shortener converts long URLs into shorter, more manageable links. This project provides a web-based interface for shortening URLs.

Algorithm Used

Base 62 conversion is a way of using 62 (0-9a-zA-Z) characters for encoding.

Technologies Used

  • Java
  • Spring Boot
  • Redis
  • SonarLint
  • Vaadin

Features

URL length is not fixed. It goes up with the ID.

Collision is impossible because ID is unique.

Drawbacks

It is easy to figure out the next available short URL if the ID increments by 1 for a new entry. This can be a security concern.

Getting Started

To start the URL shortener locally, follow these steps:

Clone this repository:

git clone https://github.com/ankitdani/Link-Shortener.git

To run

Start Redis Server

redis-server

Run the project

mvn spring-boot:run

By default, the server will run on

localhost:8080/shortener/v1

About

This URL shortener application converts long URLs into shorter, more manageable links.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published