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.
- Docker & Docker Compose
- Java 17
- Maven
docker-compose build
docker-compose up
# or
docker-compose up --build It should be accessible at port 8080.
curl -X POST http://localhost:8080/api/shorten \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "longUrl=https://www.example.com&shortUrl=example"curl http://localhost:8080/url/{shortenedUrl}Licensed under the MIT License.