Chapter 7. Connecting to a database

 

This chapter covers

  • Setting up a database from SBT
  • Connecting to a database from weKanban using Squeryl
  • Finishing the weKanban application

In chapter 6 you learned how to create a simple web application using the Simple Build Tool (SBT) and the Scalaz HTTP module. But the application you set out to build in the previous chapter wasn’t complete. The reason: to build a functional Kanban application, your application needs to store information such as stories and its status into persistent storage.

Note

This chapter is an extension of chapter 6, so if you haven’t read that chapter, some parts in this chapter related to Scalaz and SBT could be hard to follow.

7.1. Adding a new story to a weKanban board

7.2. Building the Kanban board page

7.3. Summary