LinkShrink is a simple and efficient URL shortening service that allows you to shorten long URLs into concise, easy-to-share links. With LinkShrink, you can create, manage, and track your shortened URLs quickly and conveniently.
docker run -p 80:80 -p 8080-8082:8080-8082 alquama00s/linkshrink
- head over to http://localhost
- for visiting short urls http://localhost:8081/{short-url}
The backend is being written on spring boot and can be started by mvn spring-boot:run
You can use LinkShrink API to programmatically shorten URLs. Example using cURL:
curl -X POST http://localhost:8080/api/urls/create \
-H "Content-Type: application/json" \
-d '{
"longUrl": "https://example.com/your-long-url"
}'