ShoLingo is a simple yet effective URL shortener service written in Go. This project showcases the power of Go in building high-performance web services with a minimal footprint.
- Generate short URLs for long URLs.
- High-performance handling of requests.
- Use of Go's strong concurrency model with Goroutines.
- Redis as the primary store for high-speed URL redirection.
-
Clone the repository:
git clone https://github.com/sadegh-msm/ShoLingo.git
-
Navigate into the cloned repository:
cd ShoLingo
-
Install the required Go dependencies:
go mod download
-
Compile and run the server:
go run main.go
After starting the server, you can use the following endpoints:
e.GET("/:url", routes.ResolveURL)
e.POST("/api/v1", routes.ShortenURL)
This project is dockerized and you can build the images with dockerfiles.
You can also change the configuration in .env
file.