Skip to content
Content Addressable Storage Archive
Haskell Other
  1. Haskell 98.8%
  2. Other 1.2%
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
casa-client
casa-server
casa-types
etc
.gitignore
.gitlab-ci.yml
LICENSE
README.md
stack.yaml
stack.yaml.lock

README.md

casa

Running

$ DBCONN="host='localhost' port='5432' dbname=casa user=casa password=casa" PORT=3000 AUTHORIZED_PORT=3031 casa-server

Syntax is https://www.postgresql.org/docs/9.3/libpq-connect.html#AEN39681

Testing with sqlite

$ DBCONN=".stack-work/test.sqlite" stack test --file-watch --flag casa-server:sqlite --flag casa-server:-postgresql

Testing with postgres

Spin up a postgres server:

$ docker run --rm --name casa-pg -p 6432:5432 -e POSTGRES_PASSWORD=password -d postgres:9.5 -c "log_statement=all"

Testing

$ DBCONN="host='localhost' port=6432 user=postgres password=password" stack test

Stop the postgres server:

$ docker stop casa-pg

Can be a handy way to trivially reset the database.

You can’t perform that action at this time.