Skip to content

ilmedova/WhySoLong

πŸš€ URL Shortener Service

A lightweight and efficient URL shortener built using Go, PostgreSQL, and Redis.

Features

βœ… 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


πŸ”§ Installation & Setup

1️⃣ Clone the repository

git clone https://github.com/ilmedova/url-shortener-go.git
cd url-shortener-go
docker compose up

πŸ“– API Documentation

Endpoint Description
POST /shorten Shorten a URL
GET /:short_code Redirect to long URL
GET /stats/:short_code Get URL usage statistics

πŸ“œ License

This project is licensed under the MIT License.

About

Seriously, why are some links so long?

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages