Skip to content

A simple link shortener. Inspired by Google's internal go link shortener.

License

Notifications You must be signed in to change notification settings

techit-ung/golinkshortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Simple Link Shortener

A simple link shortener. Inspired by Google's go link story.

This app is built to be lightweight in-company url shortener. The reason why we use YAML is because of it's kinda straightforward to do version control of the YAML file. In case we want a better performance, we can load YAML data into memcache and query link through that instead.

Written in Go. You can build it locally or use Docker.

Running using Docker

Build docker image with command below:

docker build -t linkshortener .

Run docker using this:

docker run \
-it -p 9091:9090 \
--rm \
--name myshortener \
-v "$(pwd)"/new_link.yaml:/root/new_link.yaml \
linkshortener --path=/root/new_link.yaml

Links YAML format

links:
  link1: https://www.github.com
  link2: https://www.google.com

About

A simple link shortener. Inspired by Google's internal go link shortener.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published