lambdaconf-2015-web
lambdaconf-2015-web copied to clipboard
Projects for LambdaConf 2015 Haskell web workshop
LambdaConf 2015 Haskell web workshop
Preparing for the workshop
- 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.
Slides
Exercises
- Returning JSON
- Software Transactional Memory (advanced)
- Database
- Esqueleto (advanced)
- Digestive Functors
- Deployment on Heroku
Running an exercise
- 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
distfolder, 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.