Track your expenses.
Haskell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
data
executable
library
test-suite
.gitattributes
.gitignore
.stylish-haskell.yaml
.travis.yml
CHANGELOG.md
CONTRIBUTING.md
HLint.hs
LICENSE.txt
README.md
Setup.hs
ledger-backend.cabal

README.md

Ledger (backend)

Build Status

Track your expenses.

This is a product being built by the Assembly community. You can help push this idea forward by visiting https://assembly.com/ledger.

This is the backend for ledger-frontend.

Installation

To install ledger-backend, you'll need The Haskell Platform version 2014.2.0.0.

$ git clone https://github.com/asm-products/ledger-backend.git
$ cd ledger-backend
$ cabal update
$ cabal sandbox init
$ cabal install
$ cabal run
# http://localhost:8080

Configuration

To configure ledger-backend, create a Configurator file.

# tmp/ledger-backend.cfg
warp { port = "8888" }
acid-state { directory = "state/ledger-backend" }
$ cabal run tmp/ledger-backend.cfg
# http://localhost:8888

For a complete list of options, check out the default configuration.

Deployment

To deploy ledger-backend, create an OpenShift account.

$ rhc app create ledgerbackend http://www.accursoft.com/cartridges/yesod.yml
$ cd ledgerbackend
$ rhc ssh
$ echo 'warp {
  host = "$(OPENSHIFT_HASKELL_IP)"
  port = "$(OPENSHIFT_HASKELL_PORT)"
}
acid-state {
  directory = "$(OPENSHIFT_DATA_DIR)/state/ledger-backend"
}' > $OPENSHIFT_DATA_DIR/ledger-backend.cfg
$ exit
$ git remote add github https://github.com/asm-products/ledger-backend.git
$ git pull github master
$ git push origin github/master:master