URI shortener

This is a simple URI shortener written in golang. Currently, located at http://51.250.91.178/.

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 127.0.0.1 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 127.0.0.1 and 5432

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

Feedback

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

Authors

License

MIT

GitHub

View Github