Ghostfolio is a portfolio tracking software that allows users to monitor and analyze their investment portfolio. It provides users with real-time market data, portfolio analysis tools, and customizable alerts. In this tutorial, we will go through the steps of installing Ghostfolio on a Ubuntu Server.
Before we start, make sure you have the following:
sudo
privilegesGhostfolio uses MongoDB as its database. To install MongoDB, run the following commands:
sudo apt update
sudo apt install mongodb
Once installed, you can enable and start the MongoDB service using the commands:
sudo systemctl enable mongodb
sudo systemctl start mongodb
To install Ghostfolio, run the following commands:
sudo npm install -g ghostfolio
By default, Ghostfolio stores its data in the ~/.ghostfol.io
directory. To configure Ghostfolio, create a config.yaml
file in the ~/.ghostfol.io
directory:
mkdir ~/.ghostfol.io
nano ~/.ghostfol.io/config.yaml
Add the following lines to config.yaml
:
database:
mongodb:
uri: "mongodb://127.0.0.1/ghostfolio"
To start Ghostfolio, run the following command:
ghostfolio
This will start the Ghostfolio server on port 8080
. You can access it by opening a web browser and typing in the URL http://<server-ip>:8080
. If you want to start Ghostfolio on a different port, add the --port
option followed by the port number:
ghostfolio --port 3000
In this tutorial, we went through the steps of installing Ghostfolio on a Ubuntu server. We installed MongoDB, installed Ghostfolio using npm, configured Ghostfolio by creating a config.yaml
file, and started the Ghostfolio server. Ghostfolio is now ready to use, and you can start adding your investment portfolio to it!
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!