This is a URL Shortener written in Java with the only purpose to create shortened urls, which are stored in a Redis-Database. The shortened links can then be used to provide a simpler access to complicated URLs.
It comes with authentication support. Only admins are allowed to create or delete short links.
You need a JDK and Gradle for this project.
As a requirement a Redis-Database is necessary. Start one with
docker run -p 6379:6379 redis:alpine
Then start the application:
We automatically build a docker image for shorty. Find it here: https://hub.docker.com/repository/docker/cmeter/url-shortener
There is a
docker-compose.yml file to create a production build.
Please copy and edit
skeleton.env to your needs and save it as
The application then starts a redis server, which persists the data and exposes port 8080 for further access.