Skip to content

flew1x/url_shortener_ms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

The example of an url shortener service

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published