allowances/readme.md

28 lines
703 B
Markdown
Raw Normal View History

2015-08-09 16:13:31 -07:00
# Allowances
2013-01-06 14:10:08 -08:00
2015-08-09 16:13:31 -07:00
keeping track of my children's money since 2013
2015-08-09 16:13:31 -07:00
## Why
2015-08-09 16:13:31 -07:00
Originally I wanted to write a from-scratch, non-tutorial web application in
go. After a few years of writing web stuff in go. My wife came to rely on this
and when she asked me to stand up the service again I couldn't get past how bad
the code looked so I polished things up.
2015-08-09 16:13:31 -07:00
## how
2015-08-09 16:13:31 -07:00
you can safely install this by running the following:
2015-08-09 16:13:31 -07:00
$ go get mcquay.me/allowances/...
2013-01-06 18:27:33 -08:00
2015-08-09 16:13:31 -07:00
One can initialize the password and children db as follows:
2013-01-06 18:27:33 -08:00
2015-08-09 16:13:31 -07:00
$ allowances pw add $PASS
$ allowances children add $DB a b c d
2013-01-06 18:27:33 -08:00
2015-08-09 16:13:31 -07:00
and run the server as such:
2015-08-09 16:13:31 -07:00
export PASSES=/tmp/passes.json
export DB=/tmp/children.json
allowances serve