How to Install Ghostfolio on Debian Latest
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.
Prerequisites
Before you start, make sure you have the following:
- A server running Debian Latest
- Root access to the server
Step 1: Install Node.js and npm
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
Step 2: Install Ghostfolio
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
Step 3: Create a Configuration File
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.
Step 4: Start Ghostfolio
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
Step 5: Access Ghostfolio
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.