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.