How to Install Goshorly on Fedora Server Latest
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.
Prerequisites
Before starting with the installation process of Goshorly, you must ensure that the following prerequisites are met:
- A running instance of Fedora Server Latest
- A user with sudo privileges
- Access to a terminal window/command line interface
Installation Steps
Login to your Fedora Server Latest instance using the sudo user.
Update the system packages using the following command:
$ sudo dnf update -yInstall Golang on the system using the following command:
$ sudo dnf install golang -ySet up the GOPATH environment variable using the following command:
$ export GOPATH=$HOME/go $ export PATH=$GOPATH/bin:$PATHClone the Goshorly repository from the Git server using the following command:
$ go get gitea.hackmi.ch/Phil/goshorly.gitNavigate to the Goshorly directory using the following command:
$ cd $GOPATH/src/gitea.hackmi.ch/Phil/goshorlyInstall the required Golang packages using the following command:
$ go get ./...Build the Goshorly binary using the following command:
$ go buildRun the Goshorly service using the following command:
$ ./goshorlyVerify that the Goshorly service is running by opening a web browser and entering the following URL:
http://localhost:8080You 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.