Actual's server
Find a file
2022-09-15 10:16:20 -04:00
.github/workflows ci: check that the server builds correctly on PRs/master 2022-08-29 23:11:02 -04:00
migrations style: apply prettier fixes 2022-08-29 23:11:51 -04:00
sql Switch syncing to simple sync method 2022-09-14 23:43:12 -04:00
util style: ignore unused variables which begin with an underscore 2022-08-29 23:11:51 -04:00
.dockerignore Updates 2022-04-29 10:35:13 -04:00
.eslintignore build: migrate to use typescript compatible linter setup 2022-05-20 09:24:19 -04:00
.eslintrc.js style: ignore unused variables which begin with an underscore 2022-08-29 23:11:51 -04:00
.gitignore chore: add build dir to gitignore 2022-05-20 13:58:48 -04:00
.prettierrc.json build: add prettier plugin 2022-05-20 09:24:19 -04:00
account-db.js Improve how data dirs are treated 2022-04-29 11:10:20 -04:00
app-account.js style: silence warning for empty function 2022-05-20 09:24:19 -04:00
app-plaid.js style: apply prettier fixes 2022-08-29 23:11:51 -04:00
app-sync.js Respect configuration for user-files 2022-09-15 10:16:20 -04:00
app.js style: apply prettier fixes 2022-08-29 23:11:51 -04:00
db.js initial (open-source) 2022-03-31 13:19:08 -04:00
docker-compose.yml Update docker-compose.yml 2022-05-19 07:19:33 -04:00
Dockerfile Move alpine build to Dockerfile.alpine; add tini to debian Dockerfile 2022-05-03 08:38:27 -04:00
Dockerfile.alpine Move alpine build to Dockerfile.alpine; add tini to debian Dockerfile 2022-05-03 08:38:27 -04:00
fly.template.toml build: add node GC argument to fly template 2022-08-31 23:51:05 -04:00
LICENSE.txt license 2022-04-29 10:39:57 -04:00
load-config.js Respect configuration for user-files 2022-09-15 10:16:20 -04:00
package.json Express version update 2022-08-09 10:41:29 -04:00
README.md Add pikapods under one-click hosted (closes #20) 2022-05-19 22:52:32 -04:00
sync-full.js style: apply prettier fixes 2022-08-29 23:11:51 -04:00
sync-simple.js Respect configuration for user-files 2022-09-15 10:16:20 -04:00
tsconfig.json fix: correct tsconfig for node.js 2022-05-20 13:58:48 -04:00
yarn.lock Express version update 2022-08-09 10:41:29 -04:00

This is the main project to run Actual, a local-first personal finance tool. It comes with the latest version of Actual, and a server to persist changes and make data available across all devices.

Join the discord!

Non-technical users

We are working on simpler one-button click deployments of Actual. This will reduce the friction for people not as comfortable with the command line. Some non-official options are listed at the bottom.

Running

It's very easy to get started. Clone this repo, install deps, and start it:

git clone https://github.com/actualbudget/actual-server.git
cd actual-server
yarn install
yarn start

Go to https://localhost:5006 in your browser and you'll see Actual.

Running via Docker

To run using a Docker container you can use following commands;

git clone https://github.com/actualbudget/actual-server.git
cd actual-server
docker build -t actual-server .
docker run -p 5006:5006 actual-server

Deploying

You should deploy your server so it's always running. We recommend fly.io which makes it incredibly easy and provides a free plan.

fly.io allows running the application directly and provides a free tier. You should be comfortable with using the command line to set it up though.

Create an account. Although you are required to enter payment details, everything we do here will work on the free tier and you won't be charged.

Next, install the flyctl utility. Run flyctl auth login to sign into your account.

Copy fly.template.toml to fly.toml. Open fly.toml and customize the app name on the first line of the file.

Now, run flyctl launch from actual-server. You should have a running app now!

Whenever you want to update Actual, update the versions of @actual-app/api and @actual-app/web in package.json and run flyctl deploy.

Using a custom Docker setup

Actual is also available as a Docker image ready to be run in your own custom environment.

  • Docker Hub: jlongster/actual-server
  • Github Registry: ghcr.io/actualbudget/actual-server

Persisting server data

One problem with the above setup is every time you deploy, it will wipe away all the data on the server. You'll need to bootstrap the instance again and upload your files.

Let's move the data somewhere that persists. With fly.io we can create a volume. Run this command:

flyctl volumes create actual_data

Now we need to tell Actual to use this volume. Add this in fly.toml:

[mounts]
  source="actual_data"
  destination="/data"

That's it! Actual will automatically check if the /data directory exists and use it automatically.

You can also configure the data dir with the ACTUAL_USER_FILES environment variable.

One-click hosting solutions

These are non-official methods of one-click solutions for running Actual. If you provide a service like this, feel free to open a PR and add it to this list. These run Actual via a Docker image.

Configuring the server URL

The Actual app is totally separate from the server. In this project, they happen to both be served by the same server, but the app doesn't know where the server lives.

The server could live on a completely different domain. You might setup Actual so that the app and server are running in completely separate places.

Since Actual doesn't know what server to use, the first thing it does is asks you for the server URL. If you are running this project, simply click "Use this domain" and it will automatically fill it in with the current domain. This works because we are serving the app and server in the same place.