- Install Haskell following the instructions of the download page.
- Open a terminal.
- Run
cabal update
. - Run
cabal install Spock blaze-html shakespeare aeson stm persistent-template persistent-sqlite esqueleto digestive-functors-blaze Spock-digestive digestive-functors-aeson wai-middleware-static
. - If you want to follow the deployment exercise, install Heroku Toolbelt.
- Returning JSON
- Software Transactional Memory (advanced)
- Database
- Esqueleto (advanced)
- Digestive Functors
- Deployment on Heroku
- Open a terminal.
- Go to the folder corresponding to the exercise.
- Execute
cabal install --only-dependencies
. - Execute
cabal build
. - The resulting program should be on the
dist
folder, inside a folder with the name of the exercise. You can run this program to start the web server. For example, the first exercise is run with./dist/ex1-json/ex1-json
. - Open your browser of choice and point it to
http://localhost:8080
.