scalaのwebフレームワークliftを試す

scalaでwebやる場合、既存のjava用のwebフレームワークを使うのもダサいので、
scala用に作られたliftを使うのがよかろう。ということで試す。
公式サイトを読む限りRuby on RailsやseasideやErlywebなどの良いとこ取りなイメージ。

Maven入れる

http://maven.apache.org/download.html
から、ダウンロードしてパスを通すだけ

動かす

http://liftweb.net/index.php/Hello_Darwin

より

  • テンプレートからプロジェクト作成

cd work/_sandbox
mvn archetype:generate -U \
-DarchetypeGroupId=net.liftweb \
-DarchetypeArtifactId=lift-archetype-blank \
-DarchetypeVersion=0.9 \
-DremoteRepositories=http://scala-tools.org/repo-releases \
-DgroupId=sandbox.lift.hellodarwin -DartifactId=hellodarwin
cd hellodarwin

  • jetty起動

mvn jetty:run -U

maven使って行う。

archetype:generateなどmvnのコマンドの説明は
http://maven.apache.org/plugins/index.html
からたどれる。
(http://maven.apache.org/plugins/maven-archetype-plugin/generate-mojo.html)