SBT

Play做Build的小坑儿一枚

在看《Play for Scala》,跟着做点小练习。

小坑儿

第二章给出了一个比较全面的Web应用,这个应用在显示详情页面的时候,需要依赖外部库,所以需要更新构建脚本。书里提到的是用project/Build.scala这个文件,结果出现编译错误,大意是Build.scala应该是有对象或类的定义的,明显是把它当成普通的Scala文件了,这很奇怪。

A quick web application with SBT

In the chapter 6 of Scala in action, the author decides to show something concrete. The example is a web application that provide Kanban service. It’s called weKanban. In order to get this example to run, there’s something to do for project setup, Scala web development and database development and so on. Here I would like to briefly describe the procedure to get it working for current environment, because some libraries used by the example are outdated in the book.