Local Installation
The easiest way to get Actual running locally is to use actual-server.
Actual server is used for syncing changes across devices. It comes with the latest version of the Actual web client.
Prerequisites
The Actual server requires Node.js v18 or greater. You can download and install the latest version of Node.js from Node.js website (we recommend downloading the “LTS” version).
- If you're on Windows, during installation of Node.js, be sure to select Automatically install the necessary tools from the Tools for Native Modules page. This is required to build better-sqlite3. If you missed this when you installed Node.js, double-click
C:\Program Files\nodejs\install_tools.bat
from the File Explorer or run it in a terminal.
- If you're on Windows, during installation of Node.js, be sure to select Automatically install the necessary tools from the Tools for Native Modules page. This is required to build better-sqlite3. If you missed this when you installed Node.js, double-click
Consider using a tool like nvm or asdf to install and manage multiple versions of Node.js.
You’ll also need to have Git installed. The Git website has instructions for downloading and working with Git for all supported operating systems.
Actual uses yarn packages. You can install yarn using the following command:
npm install --global yarn
Installing Actual
After the prerequisites are fulfilled, clone the Actual server project in your project root directory where you want to install Actual.
git clone https://github.com/actualbudget/actual-server.git
Navigate to the Actual Server in your project root director.
cd actual-server
Install all the required dependencies using yarn.
yarn install
Running Actual
After the Actual server is installed, start the Actual server by running the following command:
yarn start
Note that if you restart your computer, you’ll have to run this command again to start the server.
Linux systemd Setup
On Linux systems you can configure a systemd unit file to have Actual run on system startup. This needs to be done as the root user (open a root terminal session or preface each command with sudo to run the commands below)
- Create the file /etc/systemd/service/actual-server.service with the contents below using your text editor of choice (ex.
vi /etc/systemd/service/actual-server.service
). Note the WorkingDirectory= parameter needs to be set to your Actual install folder
[Unit]
Description=Actual-Server (https://actualbudget.org)
After=network.target
[Service]
WorkingDirectory=[Link to your actual-server install directory, ex. /var/www/html/actual]
ExecStart=/usr/bin/yarn start
Restart=on-watchdog
[Install]
WantedBy=multi-user.target
- Have systemd rescan for the unit file you created ->
systemctl daemon-reload
- Install and start the systemd unit file ->
systemctl enable --now /etc/systemd/system/multi-user.target.wants/actual-server.service
- Confirm that the Actual server is running ->
systemctl status actual-server
root@server:/etc/systemd/system# systemctl status actual-server
● actual-server.service - Actual-Server (https://actualbudget.org)
Loaded: loaded (/lib/systemd/system/actual-server.service; enabled; vendor pres>
Active: active (running) since Mon 2024-11-18 14:58:29 EST; 23h ago
Main PID: 842857 (node)
Tasks: 33 (limit: 38316)
Memory: 45.9M
CPU: 1.995s
CGroup: /system.slice/actual-server.service
├─842857 node /usr/bin/yarn start
├─842870 /usr/bin/node /var/www/html/actual-server/.yarn/releases/yarn->
└─842881 /usr/bin/node app
- You should see output similar to below. The main thing to check for is the "Active: active (running)" section. From here you can consider Setting up a Reverse Proxy and Activating HTTPS
- To stop / start / restart the server use the commands
systemctl stop actual-server
systemctl start actual-server
systemctl restart actual-server
- To see the system log showing status or errors use the command from before. This can be helpful for troubleshooting.
systemctl status actual-server
Accessing Actual
After the server has been started, you can access Actual using your browser at http://localhost:5006.
When accessing Actual for the first time, you may be prompted to provide a URL for the server. For a local installation, click the Use localhost:5006 button to use the server you've configured.
Updating Actual
- Stop the server if it’s running. You can use the keyboard shortcut CTRL-C (even on macOS) to stop the server or close the terminal window it’s running from.
- Run
git pull
from the directory you cloned the project into. This will download the latest server code. - Run
yarn install
from that same directory. This will download the latest web client code, along with any updated dependencies for the server. - Restart the server by running
yarn start
.
Actual is constantly evolving to include new features and improve the user's experience. It is always recommended that your local installation be updated with our latest releases.