Start a development database
docker-compose up db-devRun migrations on development database
docker-compose up flyway-devStart a test database
docker-compose up db-testRun migrations on test database
docker-compose up flyway-testTools required:
- Stack
- ghcid
- yesod
Start a shell with
nix-shellInstall yesod with:
stack install yesod-bin --install-ghcStart a development server with:
stack exec -- yesod devel
As your code changes, your site will be automatically recompiled and redeployed to localhost.
To run type checking on lib
make ghcid-libTo run type checking on unit tests
make ghcid-unit-testStart a development server and go to localhost:3000 or whatever is theport value in config/settings.yml
yesod develRun all tests
stack testRun unit tests
stack test :unitRun integrations tests
stack test :integrationGlobal stack configuration.
nix:
enable: true
packages: [ postgresql, zlib.dev, zlib.out ]