Goshorly is an open source URL shortening service developed in Golang. In this tutorial, we will discuss the installation process of Goshorly on Fedora Server Latest.
Before starting with the installation process of Goshorly, you must ensure that the following prerequisites are met:
Login to your Fedora Server Latest instance using the sudo user.
Update the system packages using the following command:
$ sudo dnf update -y
Install Golang on the system using the following command:
$ sudo dnf install golang -y
Set up the GOPATH environment variable using the following command:
$ export GOPATH=$HOME/go
$ export PATH=$GOPATH/bin:$PATH
Clone the Goshorly repository from the Git server using the following command:
$ go get gitea.hackmi.ch/Phil/goshorly.git
Navigate to the Goshorly directory using the following command:
$ cd $GOPATH/src/gitea.hackmi.ch/Phil/goshorly
Install the required Golang packages using the following command:
$ go get ./...
Build the Goshorly binary using the following command:
$ go build
Run the Goshorly service using the following command:
$ ./goshorly
Verify that the Goshorly service is running by opening a web browser and entering the following URL:
http://localhost:8080
You should see the Goshorly homepage.
Congratulations! You have successfully installed Goshorly on Fedora Server Latest. You can now use it as your own URL shortening service.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!