URI shortener

This is a simple URI shortener written in golang. Currently, located at

Run Locally

Clone the project

  git clone https://github.com/bibishkin/url-shorter

Go to the project directory

  cd url-shorter

Build and run project

  go build
  sudo ./url-shorter

Pay attention that you may have to configure the project. To do this open and edit a file ‘config.go’.

By default

  • server is listen on ip address on port 80
  • redirect urls are being created using server ip address
  • database user is postgres, password is ‘1111’, database host and port are and 5432

Perhaps you should change some of config’s constants, if there is an error occurred.


If you have any feedback, please reach out to me at [email protected]





View Github