Skip to content

develatter/Spring-Boot-Link-Shortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LinkShortener

A personal URL shortener built with Spring Boot, PostgreSQL, and Redis.

Features

  • Shortens long URLs and generates unique short codes.
  • Supports custom aliases for links.
  • Persistence with PostgreSQL and caching with Redis.
  • Database migrations managed with Flyway.

Main Endpoints

  • POST /shorten — Shorten a URL.
  • GET /s/{shortCode} — Redirects to the original URL based on short code.
  • GET /a/{customAlias} — Redirects to the original URL based on custom alias.

License

MIT License.

About

A basic SpringBoot link shortener implementations. Includes Redis cache and uses hexagonal architecture.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published