[HOME]: [Mac OS X]: [MacPython]: [Emacs]: [生存報告記]: [MacEmacs JP Project]: [NTEmacs JP Project]:

概要

Scalaで作成されたWeb Framework

公式サイト

http://liftweb.net/

http://github.com/dpp/liftweb/

関連サイト

http://groups.google.com/group/the-lift-book

LiftWiki

Hello World 作成

Starting with Liftを参考にして最初のアプリを作ると良いかと思います。

mvn archetype:create -U \
    -DarchetypeGroupId=net.liftweb \
    -DarchetypeArtifactId=lift-archetype-blank \
    -DarchetypeVersion=1.0 \
    -DremoteRepositories=http://scala-tools.org/repo-releases \
    -DgroupId=test.hoge.example \
    -DartifactId=helloworld

cd helloworld
mvn jetty:run

http://localhost:8080/ にアクセスして、「Welcome to your project!」な画面が表示されれば成功です。

とりあえず静的な HTML を表示する場合は、src/main/webappに入れて、http://localhost:8080/hello.html でアクセスすると見える。(jettyを再起動しないと見えない?)

src/main/scala/bootstrap/liftweb/Boot.scalaを編集するとメニューに出すことも可能。Boot.scala は起動時にしか読まれないので、jettyの再起動が必須。

sbt

WebApplicationExample - simple-build-tool - Project Hosting on Google Code

Lift 2.0-scala280-SNAPSHOT/sbt0.7.1 | ブログ.武田ソフト.jp

設定

利用方法

参考サイト


CategoryProgramLanguage

紹介マニアMoinMoin: LiftWebFramework (last edited 2010-06-27 22:11:01 by sakito)