Skip to content

melogtm/melurl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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, practicing some back-end concepts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors