• 追加された行はこの色です。
  • 削除された行はこの色です。
*Scala [#qe7175fd]

**Install (for Mac OS X) [#zc462f08]
**Install (for Mac OS X & Homebrew ) [#zc462f08]

*** play framework [#b2d4af92]

 $ brew install typesafe-activator

-参考
--https://www.playframework.com/documentation/2.3.x/Migration23
--http://tototoshi.hatenablog.com/entry/2014/05/31/153143

** Play 2.4 Hands on [#k61b2cc7]
*** create new project [#ta089099]

すごいわかりやすい
 $ activator new (projectname)

(projectname)のところで指定したディレクトリが作成されるのでcdする。

とりあえずbuild.sbtをいじる。




**参考資料 [#qc6a9b60]

*** PlayFramework - (60分クッキング) Play Framework (Scala)+MySQLでREST APIサーバーを作る - Qiita [#tde7eccd]

-http://qiita.com/AKB428/items/bbb085a06c37bd84d0be



*** Play 2.4 Hands on [#k61b2cc7]

導入部分はわかりやすかった

-https://github.com/bizreach/play2-hands-on/tree/master/play2.4-slick3.0/markdown

感想

-"activator new play2-hands-on" が完了した時点で.gitignoreが自動的に作成されているので、この時点GitHubのでリポジトリ作成しちゃってよさそう。
-build.sbtを編集するときはケツカンマに注意だ!間違えるとこうなるぞ!

 [error] [/Users/karia/source/karia/scala-play-sample/build.sbt]:16: ')' expected but string literal found.
 Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore? q

-初回のactivator runは数十分単位で時間かかる(猛然とダウンロード祭りが始まる)
-HTTPのリクエストが来てからScalaのcompileをはじめる、ヤバい

 [info] Compiling 7 Scala sources and 1 Java source to /Users/karia/source/karia/scala-play-sample/target/scala-2.11/classes...
 [info] 'compiler-interface' not yet compiled for Scala 2.11.6. Compiling...
 [info]   Compilation completed in 14.1 s
 Warning: node.js detection failed, sbt will use the Rhino based Trireme JavaScript engine instead to run JavaScript assets compilation, which in some cases may be orders of magnitude slower than using node.js.
 [info] - play.api.Play - Application started (Dev)

-2015/10/22時点でのバージョン
-2015/11/27時点でのバージョン

 You’re using Play 2.4.3
 Play 2.4.3
 scala 2.11.6


リロード   新規 下位ページ作成 編集 凍結 差分 添付 コピー 名前変更   ホーム 一覧 検索 最終更新 バックアップ   ヘルプ   最終更新のRSS