- Install Postgres
brew install postgres
(Don't do this part in tmux)
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
- Download stack (and maybe Haskell for OSX as well):
brew install haskell-stack
- Checkout the repository
git clone https://github.com/radicaljims/pvn-webservice.git
cd pvn-webservice
- Setup Postgres
./setup_postgres.sh
- Setup stack and build the project
stack setup && stack build
- Run the webservice
stack exec pvn-webservice
- Add a dumb user
./add_user.sh
- List the dumb users
./list_users.sh
[{"email":"[email protected]","registrationDate":"2015-11-11","name":"foo"}]