Chapter 6. Building web applications in functional style

 

This chapter covers

  • Building Scala projects with SBT (Simple Build Tool)
  • Introduction to the Scalaz HTTP module
  • Creating a web application in Scala called weKanban

This second part of the book switches focus to more real-world applications of the Scala programming language, and what could be more practical than building a web application in Scala? There are already web frameworks like Lift (http://liftweb.net) and Playframework (www.playframework.org) that Scala developers can use to build web applications. But this chapter introduces you to an interesting library called Scalaz (http://code.google.com/p/scalaz/). (The source code for Scalaz is hosted at http://github.com/scalaz/scalaz.) This simple library will allow you to focus on building a web application in functional style without worrying about the complexity of a full-stack web framework.

6.1. Building weKanban: a simple web-based Kanban board

6.2. Building Scala applications using Simple Build Tool

6.3. Introducing the Scalaz HTTP module

6.4. Summary