GitXplorerGitXplorer
s

lambdaconf-2015-web

public
63 stars
7 forks
0 issues

Commits

List of commits on branch master.
Unverified
ec29b8b47dfb8ee33b09a0c18caceb6247e5a413

Merge pull request #1 from earldouglas/tyop

sserras committed 9 years ago
Unverified
cea92c4a1793a3bdac244abdd58a37f9fa5df743

Fix variable names

eearldouglas committed 9 years ago
Unverified
347c30fb2e4a464d07565a9ceef97cc2919ec2bb

Add preparation instructions

sserras committed 10 years ago
Unverified
1f34dca4a1440a6dee62c3b2bd2c237e139f27eb

Update slides URL

sserras committed 10 years ago
Unverified
168b2198b6039ad75fbbc757bb2978959d8a6abc

Add part 5 about middleware

sserras committed 10 years ago
Unverified
4efbde00854dcd66c3cbbf7cdfdedc7b46f1ebd6

Added Heroku tutorial

sserras committed 10 years ago

README

The README file for this repository.

LambdaConf 2015 Haskell web workshop

Preparing for the workshop

  1. Install Haskell following the instructions of the download page.
  2. Open a terminal.
  3. Run cabal update.
  4. 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.
  5. If you want to follow the deployment exercise, install Heroku Toolbelt.

Exercises

  1. Returning JSON
  2. Software Transactional Memory (advanced)
  3. Database
  4. Esqueleto (advanced)
  5. Digestive Functors
  6. Deployment on Heroku

Running an exercise

  1. Open a terminal.
  2. Go to the folder corresponding to the exercise.
  3. Execute cabal install --only-dependencies.
  4. Execute cabal build.
  5. 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.
  6. Open your browser of choice and point it to http://localhost:8080.