Personal accounting desktop app to track your finances.
Go to file
Andrew Lalis 6900fdb481
Merge pull request #15 from andrewlalis/transaction-properties
Add Transaction Properties
2024-02-03 23:31:03 -05:00
.github/workflows Fix release workflow. 2024-01-08 12:30:20 -05:00
.mvn/wrapper Added maven wrapper, started powershell script for windows build. 2024-01-02 08:39:07 -05:00
design Added about page, improved splash screen again. 2024-01-09 12:52:42 -05:00
scripts Update to version 1.5.0 2024-02-03 23:07:19 -05:00
src Added migration info to README.md, and added ability to insert default categories into existing perfin profiles. 2024-02-03 23:27:23 -05:00
.gitignore Added more to gitignore. 2024-01-01 20:16:03 -05:00
LICENSE Initial commit 2023-12-14 15:54:32 -05:00
README.md Added migration info to README.md, and added ability to insert default categories into existing perfin profiles. 2024-02-03 23:27:23 -05:00
mvnw Added maven wrapper, started powershell script for windows build. 2024-01-02 08:39:07 -05:00
mvnw.cmd Added maven wrapper, started powershell script for windows build. 2024-01-02 08:39:07 -05:00
pom.xml Update to version 1.5.0 2024-02-03 23:07:19 -05:00

README.md

Perfin

GitHub Workflow Status (with event) GitHub release (with filter)

A personal accounting desktop app to track your finances using an approachable interface and interoperable file formats for maximum compatibility.

Download

Head to the releases page and find the installer that's compatible for your system.

No compatible release for your system? Report it here.

About Perfin

Perfin is a desktop app built with Java 21 and JavaFX. It's intended to be used by individuals to track their finances across multiple accounts (savings, checking, credit, etc.).

Because the app lives and works entirely on your local computer, you can rest assured that your data remains completely private.

Release Procedure

Platform-specific package installers are generated automatically via GitHub Actions (see .github/workflows/make-release.yaml), which is triggered by a new tag being pushed to the main branch. Follow these steps to push a release:

  1. Run java scripts/SetVersion.java 1.2.3 (replacing 1.2.3 with the new version number) to set the version everywhere that it needs to be.
  2. Add a tag to the main branch with git tag v1.2.3.
  3. Push the tag to GitHub with git push origin v1.2.3.

Once that's done, the workflow will start, and you should see a release appear in the next few minutes.

Migration Procedure

Because this application relies on a structured relational database schema, changes to the schema must be handled with care to avoid destroying users' data. Specifically, when changes are made to the schema, a migration must be defined which provides instructions for Perfin to safely apply changes to an old schema.

The database schema is versioned using whole-number versions (1, 2, 3, ...), and a migration is defined for each transition from version to version, such that any older version can be incrementally upgraded, step by step, to the latest schema version.

Perfin only supports the latest schema version, as defined by JdbcDataSourceFactory.SCHEMA_VERSION. When the app loads a profile, it'll check that profile's schema version by reading a .jdbc-schema-version.txt file in the profile's main directory. If the profile's schema version is less than the current, Perfin will ask the user if they want to upgrade. If the profile's schema version is greater than the current, Perfin will tell the user that it can't load a schema from a newer version, and will prompt the user to upgrade.

Writing a Migration

  1. Write your migration. This can be plain SQL (placed in resources/sql/migration), or Java code.
  2. Add your migration to com.andrewlalis.perfin.data.impl.migration.Migrations#getMigrations().
  3. Increment the schema version defined in JdbcDataSourceFactory.
  4. Test the migration yourself on a profile with data.