ProductPromotion
Logo

Open.Source

made by https://0x3d.site

GitHub - nymanjens/facto: Family Accounting Tool
Family Accounting Tool. Contribute to nymanjens/facto development by creating an account on GitHub.
Visit Site

GitHub - nymanjens/facto: Family Accounting Tool

GitHub - nymanjens/facto: Family Accounting Tool

Family Accounting Tool

CI Status

Family Accounting Tool keeps track of every transaction your family makes. Its goal is to:

  • Extract useful statistics from the data E.g.: How much is spent on food each month?
  • Calculate internal debt E.g.: Alice buys toilet paper for the whole family with her own money. This tool then registers that the family owes Alice the cost of the toilet paper.
  • Provide a way to check if no money is disappearing in unexpected expenses E.g.: You will notice when there are hidden banking costs

Screenshot

screenshot

Installation from release

  • Install Java 11 (JDK 11) on your server
  • Download "Binaries (compiled files) with demo configuration" from the latest release
  • Unpack the archive
  • Open conf/application.conf in the unpacked folder:
    • Configure a database. The easiest way is to set up a MariaDB server locally, create an empty database called facto and configure it as follows:
db.default {
  driver = com.mysql.jdbc.Driver
  url = "jdbc:mysql://localhost/facto?user=mysqluser&password=mysqlpassword"
  slick.profile = "slick.jdbc.MySQLProfile$"
}
  • Choose secret values for play.http.secret.key and app.setup.defaultPassword

  • Open a terminal in the unpacked folder

  • Run following commands to get the app running:

    # Create database tables
    bin/server -DdropAndCreateNewDb
    
    # Create admin user
    bin/server -DcreateAdminUser
    
    # Run application
    bin/server
    
  • Browse to http://localhost:9000/app/useradministration (username: "admin", password: "changeme")

Installation with Docker (discouraged)

Warning: The following works fine for launching a demo server to have a look. But if you want to run this as a service with real data and custom configuration, it is recommended to follow the "Installation from release" section instead (see this issue for the reasons why).

The following commands will launch a new server alongside a database in Docker containers:

# Get the docker-compose.yml file
wget https://raw.githubusercontent.com/nymanjens/facto/master/docker-compose.yml

# Choose a unique random string here of sufficient length
export APPLICATION_SECRET="$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)"

# Create an empty database with a single admin user
docker-compose run web sleep 5 # Wait for the database to be ready
docker-compose run web bin/server -DdropAndCreateNewDb
docker-compose run web bin/server -DcreateAdminUser

# Bring up the server
docker-compose up

When done, browse to http://localhost:9000/ (username: "admin", password: "changeme")

Configuration

  • conf/application.conf: Setup and configure a database here.
  • Add users: A default user is created with the -DcreateAdminUser flag (username: admin, password: changeme). This account can create new users.
  • conf/accounting-config.yml: Edit this file to reflect your situation and preferences. Note that userLoginName has to refer to a user that already exists in the database (see previous point)

Usage

To effectively use this tool, you must learn to input the transactions correctly. Therefore, it's important to understand the meaning of categories and accounts.

Categories

These are used to split up your expenses into categories. Every account has some special categories:

  • Accounting category: Used for non-real income/expenses. This category will be ignored when analysing the monthly surplus/deficit in terms of expenses. Use this category e.g. when the expense will be paid back by your employer
  • Endowment category: Used for money transfer to the common account (see example in the next section)

Accounts

An account can refer to a regular person or the common account.

Example:

A family has two members: Alice and Bob. There will be three accounts:

  • Alice
  • Bob
  • The common account

Alice and Bob will regularly transfer money to the common account which can be used to make common expenses. This transfer to the common account is called an 'endowment'.

Inputting transactions

Special fields:

  • Beneficiary: In case of an expense: The one that will benefit from the expense In case of an income: The one that was paid
  • Paid with/to: In case of an expense: Paid with In case of an income: Paid to
  • Flow: In case of an expense: Negative number representing the price In case of an income: Positive number

Using the Cash Flow overview effectively

The cash flow overview is a powerfull tool to check for unaccounted expenses.

You should:

  • Set the current amount of money you have for every payment method (cash, card, ...). You can do this by using the "set" button.
  • Whenever you perform a transaction, the balance will be updated automatically.
  • You can re-count your cash and see if it matches the calculated value. If it does, you can use the checkbox button to mark this. If it doesn't, you have made an error or lost money.

About this project

This project was created and maintained by me (Jens) in my spare time for my family, and I made it open source in the hope that it might be useful for others.

If you decide to use this, chances are you'll either be using it a lot, or stop using it after some time. If you are in the former category, please send me a message at [email protected] (or consider sending a donation) so I know others are using this. Definitely also let me know if you have any interest in upgrading to newer versions or using the more advanced (hidden) features like exchange rates and inflation correction.

Articles
to learn more about the open-source concepts.

Resources
which are currently available to browse on.

mail [email protected] to add your project or resources here 🔥.

FAQ's
to know more about the topic.

mail [email protected] to add your project or resources here 🔥.

Queries
or most google FAQ's about Open-Source.

mail [email protected] to add more queries here 🔍.

More Sites
to check out once you're finished browsing here.

0x3d
https://www.0x3d.site/
0x3d is designed for aggregating information.
NodeJS
https://nodejs.0x3d.site/
NodeJS Online Directory
Cross Platform
https://cross-platform.0x3d.site/
Cross Platform Online Directory
Open Source
https://open-source.0x3d.site/
Open Source Online Directory
Analytics
https://analytics.0x3d.site/
Analytics Online Directory
JavaScript
https://javascript.0x3d.site/
JavaScript Online Directory
GoLang
https://golang.0x3d.site/
GoLang Online Directory
Python
https://python.0x3d.site/
Python Online Directory
Swift
https://swift.0x3d.site/
Swift Online Directory
Rust
https://rust.0x3d.site/
Rust Online Directory
Scala
https://scala.0x3d.site/
Scala Online Directory
Ruby
https://ruby.0x3d.site/
Ruby Online Directory
Clojure
https://clojure.0x3d.site/
Clojure Online Directory
Elixir
https://elixir.0x3d.site/
Elixir Online Directory
Elm
https://elm.0x3d.site/
Elm Online Directory
Lua
https://lua.0x3d.site/
Lua Online Directory
C Programming
https://c-programming.0x3d.site/
C Programming Online Directory
C++ Programming
https://cpp-programming.0x3d.site/
C++ Programming Online Directory
R Programming
https://r-programming.0x3d.site/
R Programming Online Directory
Perl
https://perl.0x3d.site/
Perl Online Directory
Java
https://java.0x3d.site/
Java Online Directory
Kotlin
https://kotlin.0x3d.site/
Kotlin Online Directory
PHP
https://php.0x3d.site/
PHP Online Directory
React JS
https://react.0x3d.site/
React JS Online Directory
Angular
https://angular.0x3d.site/
Angular JS Online Directory