Ghostfolio is a cryptocurrency portfolio tracker that allows you to keep track of all your trading activities in one place. In this tutorial, we will show you how to install Ghostfolio on Debian Latest.
Before you start, make sure you have the following:
Ghostfolio is built on Node.js, so we need to install Node.js and npm on our server first. Run the following commands to install Node.js and npm:
sudo apt update
sudo apt install nodejs npm
Once Node.js and npm are installed, we can proceed with the installation of Ghostfolio. Run the following commands to download Ghostfolio and install it:
git clone https://github.com/ghostfol.io/ghostfolio.git
cd ghostfolio
npm install
Ghostfolio needs a configuration file to run. Create a new file named config.json
in the config
folder using the following command:
cp config.example.json config/config.json
Edit the config.json
file by changing the following fields:
host
: The IP address or hostname of your serverdb
: The database name you want to useusername
: The database user you want to usepassword
: The password for the database userport
: The port Ghostfolio will listen on (default is 8080).jwt_secret
: A secret key used to encrypt JSON Web Tokens.Now that we have installed Ghostfolio and created the configuration file, we can start Ghostfolio using the following command:
npm start
You should see the following output:
Server started on port 8080
Open your web browser and go to http://your-server-ip:8080. You should see the Ghostfolio login page. Use the default username admin
and password password
to log in.
Congratulations! You have successfully installed and configured Ghostfolio on Debian Latest.
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!