howeyc / ledger

Command line double-entry accounting program
https://howeyc.github.io/ledger/
ISC License
455 stars 43 forks source link

Wishlist: Read Only option on Web Ledger #46

Closed verkaro closed 1 year ago

verkaro commented 1 year ago

I enjoy being able to glance at balances via ledger web. But would it be nice in the future to update via the cli and have no access to edit via the browser. This way ledger web functions with multi-user read-only access with reasonable security and accountability reserved as git only editable.

howeyc commented 1 year ago

I like this idea.

I added a -read-only option when running the web command. It removes the add transaction page.

verkaro commented 1 year ago

Awesome!

verkaro commented 1 year ago

$ ledger web -read-only -f ledgerRoot.dat 2023/04/25 00:38:06 Listening on port 8056 2023/04/25 00:38:06 open ead-only: no such file or directory 2023/04/25 00:38:06 invalid argument

I installed via: go install github.com/howeyc/ledger/ledger@latest go version go1.20.3 linux/amd64

I am probably doing something wrong

howeyc commented 1 year ago

My mistake, need two dashes, --read-only

verkaro commented 1 year ago

Updating this morning, all is working well. Thanks for what you do.

I am running this on a RPI server. With a git hook I can keep the ledger web page live now, no worries. There's only two of us for now but I have a going interest in setting up a plain text small office. Of course having a multi-user financial ledger is in the top handful of my software choices. Golang is great for a non-coder to stay on the bleeding edge of cli based solutions. Cheers.