A sample Phoenix 1.8 application for the DoubleEntryLedger library, showcasing command-sourced double-entry bookkeeping with DaisyUI components.
- Elixir 1.17+
- PostgreSQL 14+
mix setupThis runs deps.get, creates and migrates the database, seeds demo data, and builds assets.
iex -S mix phx.serverAccess the application at http://localhost:4000/
The seed file (priv/repo/seeds.exs) queues commands for backend processing:
- 1 ledger instance (
ledger:1) - 5 account commands (EUR/USD assets, liability, equity)
- 14 transaction commands including 3 that intentionally fail (overdraft violations, unbalanced entries)
Commands are processed asynchronously by Oban workers which create accounts, entries, balances, and balance history.
To re-seed on an existing database:
mix run priv/repo/seeds.exsTo reset everything from scratch:
mix ecto.reset