Skip to content

Latest commit

 

History

History
47 lines (31 loc) · 782 Bytes

README.md

File metadata and controls

47 lines (31 loc) · 782 Bytes

URL Shortener

This repository represents a simple url shortener.

Init

  docker compose up --build

Initial port and host - 80, localhost

Functional requirements:

  • Create a link from an inputed link
  • Redirect requests from server to origin link

Structure

  • Service represents clean architecture with layers as repository, controllers, service, entity

Stack

  • MongoDB
  • Redis
  • Gin
  • Docker
  • Golang

API Reference

To short the link

  POST /shorten
Parameter Type Description
url string Required. Origin ling

Return short_url

Redirect to origin link

  GET /:url