Shared Cost
===========

Share costs with a group of people:

- Share according to people income,
- Monthly payments available,
- Statistics by month,
- Weekly activity sent by email.

Getting started
---------------

Install nix:

```
curl https://nixos.org/nix/install | sh
```

Then:

```
./dev
```

Inside the tmux session, add some users with sqlite after the migration is done:

```
sqlite3 database
insert into user(creation, email, name) values (datetime('now'), 'john@mail.com', 'John');
insert into user(creation, email, name) values (datetime('now'), 'lisa@mail.com', 'Lisa');
```

Simple build
------------

```
./build
```

Configuration
-------------

See [application.conf](application.conf).

TODO
----

- Modelize current page for both punctual and monthly payments
- search by payment category
- Use `sqlite-simple` instead of `persistent`
- Move up element ids security (editOwn is actually at db level)
- Prevent a daemon to freeze when it got “SQLite3 returned ErrorBusy while
  attempting to perform step.”
- Minify javascript from elm for production build
- CRUD animations (loading, created-updated-deleted element)