This is a simple URI shortener written in golang. Currently, located at http://18.104.22.168/.
Clone the project
git clone https://github.com/bibishkin/url-shorter
Go to the project directory
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’.
- 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.
If you have any feedback, please reach out to me at [email protected]