To get PeerTrader up and runnging:
$ git clone [email protected]:WraithM/notescript.git
$ git clone [email protected]:WraithM/peertrader-backend.git
$ git clone [email protected]:Soostone/groundhog-utils.git
$ git clone [email protected]:ocharles/snaplet-ekg.git
$ cd notescript
$ cabal sandbox init
$ cd ../peertrader
$ cabal sandbox init
$ cabal sandbox add-source ../notescript
$ cabal sandbox add-source ../groundhog-utils
$ cabal sandbox add-source ../snaplet-ekg
$ cabal install -j
(hint: It might be helpful to install Snap first. cabal install snap -j
)
Run peertrader (.cabal-sandbox/bin/peertrader
), and the program will probably
fail with various postgres errors. Allow peertrader to connect to postgres, and
create the snap_auth_user
table.
$ createdb peertrader
$ createuser -s -U postgres --interactive
$ psql -d peertrader -U postgres < sql/createtables.sql
Open prosper.cfg:
prosper {
apiurl = "api.prosper.com"
username = "[email protected]"
password = "ProsperAPIPassword"
log {
logger = "MarketData"
enabled = false # You can enable market data to be logged to a file
location = "log/prosper.log"
level = "DEBUG"
}
}
Open devel.cfg:
groundhog {
host = "localhost"
name = "peertrader"
user = "postgres"
}
p2ppicks {
apikey = "YourAPIKey"
apisecret = "YourAPISecret"
email = "yourp2ppicksemail"
password = "p2ppickspassword"
}
$ .cabal-sandbox/bin/peertraderOps
$ .cabal-sandbox/bin/peertrader -p 8000 +RTS -N
'PeerTrader' is a trademark of Deck Technologies, Inc.