A lightweight and efficient URL shortener built using Go, PostgreSQL, and Redis.
✅ Generate short URLs for long links
✅ Retrieve original URLs from short links
✅ Expiry time for links (optional)
✅ Rate limiting to prevent abuse
✅ Dockerized for easy deployment
git clone https://github.com/ilmedova/url-shortener-go.git
cd url-shortener-go
docker compose up| Endpoint | Description |
|---|---|
| POST /shorten | Shorten a URL |
| GET /:short_code | Redirect to long URL |
| GET /stats/:short_code | Get URL usage statistics |
This project is licensed under the MIT License.