Fider is an open-source feedback platform written in Go. It is designed to help individuals, startups, and businesses collect feedback and suggestions from their customers or users.
In this tutorial, we will guide you through the process of installing Fider on Ubuntu Server.
Before proceeding with the installation, ensure that you have the following prerequisites:
First, log in to your Ubuntu Server and update the system packages.
sudo apt-get update && sudo apt-get upgrade
Next, install the required packages for compiling and running Fider:
sudo apt-get install -y curl git gcc g++ make
sudo apt-get install -y libpq-dev libsqlite3-dev libssl-dev
Fider is written in Go, so you need to install Go on your Ubuntu Server.
First, download the Go binary distribution from the official website:
curl -O https://dl.google.com/go/go1.16.linux-amd64.tar.gz
Then, extract the downloaded archive and move it to the /usr/local
directory:
sudo tar -C /usr/local -xzf go1.16.linux-amd64.tar.gz
Next, set the Go environment variables by editing the ~/.profile
file:
nano ~/.profile
Add the following lines to the end of the file and save:
export GOPATH=$HOME/go
export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin
Reload the ~/.profile
file:
source ~/.profile
Verify the installation by running the following command:
go version
Create a new directory for the Fider installation:
mkdir ~/fider
cd ~/fider
Clone the Fider source code from the official repository:
git clone https://github.com/getfider/fider.git
Switch to the v0.17.x
branch:
cd fider
git checkout v0.17.x
Install the Fider dependencies:
go mod download
Build the Fider binary using the following command:
make build
Verify that the binary is created in the bin/
directory:
ls -lh bin/fider
Copy the Fider example configuration file:
cp .env.example .env
Edit the .env
file:
nano .env
Modify the following settings to suit your requirements:
HTTP_HOST=example.com # your domain name here
EMAIL_HOST=smtp.gmail.com # your email SMTP host here
EMAIL_SMTP_PORT=587 # your email SMTP port here
EMAIL_SMTP_USERNAME=your-email@gmail.com # your email username here
EMAIL_SMTP_PASSWORD=your-email-password # your email password here
DATABASE_URL= # your PostgreSQL or SQLite3 database URL here
Save the changes and exit the editor.
Start the Fider server by running the following command:
bin/fider
Fider will start listening on port 3000
.
By default, Fider listens on http://localhost:3000
. You can use Nginx as a reverse proxy to access Fider using your domain name.
First, install Nginx:
sudo apt-get install -y nginx
Create a new Nginx virtual host configuration file:
sudo nano /etc/nginx/sites-available/fider
Add the following configuration:
server {
listen 80;
server_name example.com; # your domain name here
access_log /var/log/nginx/fider.access.log;
error_log /var/log/nginx/fider.error.log;
location / {
proxy_pass http://127.0.0.1:3000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 10m;
}
}
Save the changes and exit the editor.
Enable the new virtual host configuration:
sudo ln -s /etc/nginx/sites-available/fider /etc/nginx/sites-enabled/fider
Verify the Nginx configuration:
sudo nginx -t
If the configuration is valid, reload Nginx:
sudo systemctl reload nginx
Congratulations! You have successfully installed Fider on Ubuntu Server and configured it to run with Nginx. You can now log in to your Fider instance and start collecting feedback from your customers or users.
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!