|
1 year ago | |
---|---|---|
app | 1 year ago | |
assets | 1 year ago | |
config | 1 year ago | |
flyway/sql | 1 year ago | |
nix | 1 year ago | |
src | 1 year ago | |
test | 1 year ago | |
.gitignore | 1 year ago | |
.stylish-haskell.yaml | 1 year ago | |
LICENSE | 1 year ago | |
Makefile | 1 year ago | |
README.md | 1 year ago | |
docker-compose.yml | 1 year ago | |
package.yaml | 1 year ago | |
shell.nix | 1 year ago | |
stack.yaml | 1 year ago | |
stack.yaml.lock | 1 year ago |
Start a development database
docker-compose up db-dev
Run migrations on development database
docker-compose up flyway-dev
Start a test database
docker-compose up db-test
Run migrations on test database
docker-compose up flyway-test
Tools required:
Start a shell with
nix-shell
Install yesod with:
stack install yesod-bin --install-ghc
Start 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-lib
To run type checking on unit tests
make ghcid-unit-test
Start a development server and go to localhost:3000
or whatever is theport
value in config/settings.yml
yesod devel
Run all tests
stack test
Run unit tests
stack test :unit
Run integrations tests
stack test :integration
Global stack configuration.
nix:
enable: true
packages: [ postgresql, zlib.dev, zlib.out ]