Go Shortener is a simple URL shortening service built with Go. It allows you to shorten long URLs, redirect users to the original URLs, and optionally collect click statistics. This project is intended for both learning purposes and practical use.
- URL Shortening: Generate short links from long URLs.
- Redirection: Automatically redirect from a short URL to the original long URL.
- REST API: Easily integrate with other services via a well-defined API.
- Language: Go
- Clone the Repository:
git clone https://github.com/vlxdisluv/shortener.git
- Navigate to the Project Directory:
cd shortener
- Install Dependencies:
go mod tidy
- Run the Application:
The application will start on the default port (e.g.,
go run cmd/shortener/main.go
8080
). Adjust the configuration as needed.
To run the automated tests, use:
go test ./...