๐ A simple URL Shortener API
URL Shortener is built using:
- Spring Framework, an application framework for the Java platform.
- Spring Boot, an framework designed to simplify the bootstrapping and development Spring applications.
- Gradle, an open-source build automation system. Feel free to use the
gradlew
on bash orgradlew.bat
on windows cmd.
The following software is required to be installed locally in order to get this project running:
- Java 1.8
- Docker
-
Make sure you have a functional docker environment
-
Clone from github (this will create url-shortener in the current directory)
git clone https://github.com/diogolundberg/url-shortener.git
cd url-shortener
- Build the project
gradlew build
- Run the project
docker-compose up
curl -XPOST localhost:8080/shorten -H 'Content-Type: application/json' -d '{
"url": "https://www.example.com/"
}'