A site for Yesod developers and enthusiastics
-
Download and install local copies of all the libraries needed by using the Stack tool:
stack install yesod-bin cabal-install --install-ghc && stack build
-
create new postgresql database (one for the site, and one for the tests):
sudo su - postgres psql template1 CREATE USER root WITH PASSWORD 'root'; CREATE DATABASE yesoders; CREATE DATABASE yesoders_test; GRANT ALL PRIVILEGES ON DATABASE yesoders TO root; GRANT ALL PRIVILEGES ON DATABASE yesoders_test TO root; \q
stack exec -- yesod devel
The following is a way to run faster builds while in development:
- Follow instructions on yesod-fast-devel
- Execute
yesod-fast-devel
and open http://localhost:4000
Execute tests using stack test
.