How to Install Gotify on Windows 11
Gotify is a self-hosted push notification server that can be used to send notifications to a variety of clients. In this tutorial, we will walk through the steps to install Gotify on a Windows 11 machine.
Prerequisites
- Windows 11 machine with administrator rights
- Latest version of Go installed on your machine
- A text editor like Notepad++ or Visual Studio Code
Step 1: Download Gotify
Download the latest version of Gotify from the official Gotify website. Extract the archive to a convenient location on your machine.
Step 2: Set up the Database
Gotify requires a database to function properly. In this tutorial, we will be using PostgreSQL as our database.
- Download and install PostgreSQL from the official website.
- Once installed, launch pgAdmin, the graphical administration tool for PostgreSQL.
- Create a new database, name it "gotify", and take note of the credentials.
Step 3: Set up the Config File
Navigate to the Gotify directory that you extracted in Step 1. Open the config.yml file in a text editor.
Make sure to set the following configuration settings:
port: The port on which the Gotify server listens. By default, Gotify listens on port80.database_type: Set this topostgres.database_connection_string: Set the value to the credentials of the PostgreSQL database you created in Step 2.
Step 4: Build and Run the Gotify Server
Open the command prompt and navigate to the Gotify directory.
- Run the following command to build the server:
go build -o gotify-app
- Run the following command to start the server:
./gotify-app
- You should now be able to access Gotify by navigating to
localhost:<port>in your web browser.
Congratulations! You have successfully installed Gotify on your Windows 11 machine.