Skip to content

peageon/spring-boot-url-shortener

Repository files navigation

How to execute

  1. Navigate to urlshortener directory and execute docker container by running the command "docker-compose up".
    This will run the docker-compose.yml which runs a Redis image from docker hub.
  2. Start the server
  3. Make a http Post request with JSON body containing "url" as key and the url you want shortened as its value.
    This will return shortened url.
  4. Now take the shortened url and make a http Get request to the server.
    Ex. http://localhost:8080/{shortened_url}


Post Request

image

Get Request

image

About

Url Shortener with spring boot and redis

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages