Skip to content

RadhiFadlillah/duit

Repository files navigation

Duit

Simple money tracker, built with Go and Mithril.js


Duit is a simple money tracker written in Go language and Mithril.js. I created this for me and my wife, so the feature is a bit lacking, just the bare needed features to track where the money goes. However, I hope it will be useful for other families as well. This application is distributed as a single binary, which means it can be installed and used easily.

Features

  • Basic money tracking, i.e. income, expense and transfer.

    Basic money tracking

  • Simple chart to track total money available.

    Simple chart

  • Responsive on mobile.

    Mobile responsive

Installation

You can download the latest version of duit from release page. To built from source, make sure you use go >= 1.13 then run following commands :

git clone git@github.com:RadhiFadlillah/duit.git
cd duit
go build -v -tags prod

After build finished, put it into your $PATH then run it.

Usage

Duit, the simple money manager

Usage:
  duit [flags]

Flags:
  -c, --config string   path to config file (default "/home/radhi/.config/duit/config.toml")
  -h, --help            help for duit
  -p, --port int        port used by the server (default 8080)

Configuration

Duit uses MariaDB or MySQL database, so make sure it's installed on your system before you start duit.

As can be seen from usage documentation above, duit needs to be configurated before it started. The configuration file by default is located in user config dir (which is $XDG_CONFIG_HOME in Linux), but can be set manually by user.

The configuration file is a TOML file with following contents (change it depending on your case) :

dbName = "duit"
dbUser = "root"
dbHost = "127.0.0.1"
dbPassword = ""

Once configuration file created, you can start using duit.

Attributions

Original logo is created by Freepik in theirs business pack, which can be downloaded from www.flaticon.com.

License

Duit is distributed using MIT license, which means you can use and modify it however you want. However, if you make an enhancement for it, if possible, please send a pull request. If you like this project, please consider donating to me either via PayPal or Ko-Fi.