This repository represents a simple url shortener.
docker compose up --build
Initial port and host - 80, localhost
- Create a link from an inputed link
- Redirect requests from server to origin link
- Service represents clean architecture with layers as repository, controllers, service, entity
- MongoDB
- Redis
- Gin
- Docker
- Golang
POST /shorten
Parameter | Type | Description |
---|---|---|
url |
string |
Required. Origin ling |
Return short_url
GET /:url