This is a URL shortener application built with Java, Spring, Redis and Vaadin. Demo
This URL shortener converts long URLs into shorter, more manageable links. This project provides a web-based interface for shortening URLs.
Base 62 conversion is a way of using 62 (0-9a-zA-Z) characters for encoding.
URL length is not fixed. It goes up with the ID.
Collision is impossible because ID is unique.
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.
To start the URL shortener locally, follow these steps:
Clone this repository:
git clone https://github.com/ankitdani/Link-Shortener.git
Start Redis Server
redis-server
Run the project
mvn spring-boot:run
By default, the server will run on
localhost:8080/shortener/v1