Skip to content
melogtmPublic

About

URL shortener built with Java 17, Spring Boot, PostgreSQL and Redis; runs with Docker Compose.

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

16 Commits

Folders and files

Repository files navigation

TinyURL Application

Overview

TinyURL is a URL shortening service built with Java, Spring Boot, PostgreSQL, and Redis. This application allows users to shorten long URLs and retrieve the original URLs using the shortened versions.

Prerequisites

  • Docker & Docker Compose
  • Java 17
  • Maven

Getting Started

Clone the Repository && Compose it up!

docker-compose build
docker-compose up  

# or 

docker-compose up --build 

Access it!

It should be accessible at port 8080.

Usage

Shorten URL

curl -X POST http://localhost:8080/api/shorten \
     -H "Content-Type: application/x-www-form-urlencoded" \
     -d "longUrl=https://www.example.com&shortUrl=example"

Get Long URL

curl http://localhost:8080/url/{shortenedUrl}

LICENSE

Licensed under the MIT License.

About

URL shortener built with Java 17, Spring Boot, PostgreSQL and Redis; runs with Docker Compose.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages