{"id":839,"date":"2012-12-24T18:20:37","date_gmt":"2012-12-24T09:20:37","guid":{"rendered":"http:\/\/www.whoocus.com\/blog\/?p=839"},"modified":"2012-12-25T01:23:18","modified_gmt":"2012-12-24T16:23:18","slug":"playframework-%e4%ba%8b%e5%a7%8b%e3%82%81","status":"publish","type":"post","link":"https:\/\/www.blowfish.co.jp\/?p=839","title":{"rendered":"Playframework \u4e8b\u59cb\u3081"},"content":{"rendered":"<p>\u5148\u65e5\u306eScala\u4e8b\u59cb\u3081\u306b\u5f15\u304d\u7d9a\u304d\u3001Scala\u3082\u3057\u304f\u306fJava\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3042\u308b Playframework \u306b\u8208\u5473\u3092\u6301\u3063\u3066\u307f\u305f\u3002<\/p>\n<p>\u7406\u7531\u3068\u3057\u3066\u306f\u3001\u79c1\u81ea\u8eab\u3001\u5143\u3005Java\u5c02\u9580\u3002\u3057\u304b\u3057Java\u3067Web\u958b\u767a\u3059\u308b\u306e\u306f\u3001\u304b\u306a\u308a\u82e6\u75db\u3002<br \/>\n\u305d\u3053\u3067Ruby on Rails\u306b\u66ab\u304f\u4e57\u308a\u63db\u3048\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001Ruby\u306f\u3084\u3063\u3071\u308a\u3059\u3054\u304f\u697d\u3061\u3093\u3002<\/p>\n<p>\u3067\u3082\u3001\u3084\u306f\u308a\u696d\u52d9\u3067\u306e\u5229\u7528\u3068\u306a\u308b\u3068\u3001MySQL\u3060\u3051\u3067\u306a\u304f\u3001\u696d\u52d9\u5c02\u7528\u306eDB\u3068\u306e\u9023\u643a\u304c\u5fc5\u8981\u3068\u306a\u308b\u3002\u78ba\u304b\u306bRails\u3067\u3082\u696d\u52d9\u5c02\u7528DB\u3068\u306e\u9023\u643a\u306f\u53ef\u80fd\u306a\u306e\u3060\u304c\u3001\u79c1\u81ea\u8eab\u304c\u3001\u306b\u308f\u304b\u30a8\u30f3\u30b8\u30cb\u30a2\u306a\u306e\u3067\u3001\u3069\u3053\u304b\u9055\u548c\u611f\u3068\u4e0d\u5b89\u611f\u3092\u611f\u3058\u3066\u3044\u305f\u3002<\/p>\n<p>\u305d\u3053\u3067\u3001Rails\u306e\u4fbf\u5229\u3055\u3068\u3001Java\u306e\u5b89\u5fc3\u611f\u3092\u517c\u306d\u305d\u308d\u3048\u3066\u3044\u308b\u3068\u5642\u306e Scala \u3068\u3001\u305d\u306e\u4ee3\u8868\u7684\u306a\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3042\u308b Play2 \u306b\u8208\u5473\u3092\u6301\u3063\u305f\u7d4c\u7def\u3067\u3042\u308b\u3002<\/p>\n<p><a href=\"http:\/\/www.playframework.org\/\" title=\"Playframework\" target=\"_blank\">Playframework Home<\/a><\/p>\n<p>\u65e9\u901fzip\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3002<\/p>\n<p>\u30aa\u30f3\u30e9\u30a4\u30f3\u30de\u30cb\u30e5\u30a2\u30eb\u306b\u306f\u3001\u6a29\u9650\u306e\u7121\u3044\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u3059\u308b\u3053\u3068\u3092\u975e\u63a8\u5968\u3068\u3057\u3066\u3044\u308b\u3088\u3046\u3067\u3042\u308b\u304c\u3001\u79c1\u306e\u5834\u5408\u306f\u3001\u4e0b\u8a18\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<\/p>\n<p>[bash]<br \/>\n\/usr\/local\/play-2.0.4<br \/>\n[\/bash]<\/p>\n<p>\u79c1\u306e\u958b\u767a\u74b0\u5883\u306f\u3001Mac\u306a\u306e\u3067\u3001\u30e6\u30fc\u30b6\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3042\u308b .bashrc \u306b\u4e0b\u8a18\u3092\u8ffd\u8a18\u3002<br \/>\n[bash]<br \/>\n$ vi .bashrc<br \/>\nexport PATH=${PATH}:\/usr\/local\/play-2.0.4<br \/>\n[\/bash]<\/p>\n<p>\u74b0\u5883\u5909\u6570\u3092\u6709\u52b9\u306b\u3057\u3066\u3001\u521d\u3081\u3066\u306e play\u30b3\u30de\u30f3\u30c9\u3002<br \/>\n[bash]<br \/>\n$ source .bashrc<\/p>\n<p>$ play help<br \/>\nGetting net.java.dev.jna jna 3.2.3 &#8230;<br \/>\n:: retrieving :: org.scala-sbt#boot-app<br \/>\n\tconfs: [default]<br \/>\n\t1 artifacts copied, 0 already retrieved (838kB\/176ms)<br \/>\nGetting Scala 2.9.1 (for console)&#8230;<br \/>\n:: retrieving :: org.scala-sbt#boot-scala<br \/>\n\tconfs: [default]<br \/>\n\t4 artifacts copied, 0 already retrieved (19939kB\/1169ms)<br \/>\nGetting play console_2.9.1 2.0.4 &#8230;<br \/>\n:: retrieving :: org.scala-sbt#boot-app<br \/>\n\tconfs: [default]<br \/>\n\t5 artifacts copied, 0 already retrieved (3667kB\/208ms)<br \/>\n       _            _<br \/>\n _ __ | | __ _ _  _| |<br \/>\n| &#8216;_ \\| |\/ _&#8217; | || |_|<br \/>\n|  __\/|_|\\____|\\__ (_)<br \/>\n|_|            |__\/ <\/p>\n<p>play! 2.0.4, http:\/\/www.playframework.org<\/p>\n<p>Welcome to Play 2.0!<\/p>\n<p>These commands are available:<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\nlicense            Display licensing informations.<br \/>\nnew [directory]    Create a new Play application in the specified directory.<\/p>\n<p>You can also browse the complete documentation at http:\/\/www.playframework.org.<\/p>\n<p>[\/bash]<\/p>\n<p>\u3046\u307e\u304f\u884c\u3063\u3066\u3044\u308b\u3088\u3046\u3060\u3002<br \/>\nPlay\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3059\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u79fb\u52d5\u3057\u3066\u3001\u65e9\u901f\u65b0\u898f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3002\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u540d\u306f\u3001PlayTest\u3002<\/p>\n<p>[bash]<br \/>\n$ cd \/Works<br \/>\n$ play new PlayTest<br \/>\n       _            _<br \/>\n _ __ | | __ _ _  _| |<br \/>\n| &#8216;_ \\| |\/ _&#8217; | || |_|<br \/>\n|  __\/|_|\\____|\\__ (_)<br \/>\n|_|            |__\/ <\/p>\n<p>play! 2.0.4, http:\/\/www.playframework.org<\/p>\n<p>The new application will be created in \/Works\/PlayTest<\/p>\n<p>What is the application name?<br \/>\n&gt; PlayTest<\/p>\n<p>Which template do you want to use for this new application? <\/p>\n<p>  1 &#8211; Create a simple Scala application<br \/>\n  2 &#8211; Create a simple Java application<br \/>\n  3 &#8211; Create an empty project<\/p>\n<p>&gt; 1<\/p>\n<p>OK, application PlayTest is created.<\/p>\n<p>Have fun!<br \/>\n[\/bash]<\/p>\n<p>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u96db\u5f62\u304c\u4f5c\u6210\u3055\u308c\u305f\u3002<br \/>\n\u4eca\u65e5\u306f\u3053\u308c\u307e\u3067\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5148\u65e5\u306eScala\u4e8b\u59cb\u3081\u306b\u5f15\u304d\u7d9a\u304d\u3001Scala\u3082\u3057\u304f\u306fJava\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3042\u308b Playframework \u306b\u8208\u5473\u3092\u6301\u3063\u3066\u307f\u305f\u3002 \u7406\u7531\u3068\u3057\u3066\u306f\u3001\u79c1\u81ea\u8eab\u3001\u5143\u3005Java\u5c02\u9580\u3002\u3057\u304b\u3057Java\u3067Web\u958b\u767a\u3059\u308b\u306e\u306f\u3001\u304b\u306a\u308a\u82e6\u75db [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"saved_in_kubio":false,"footnotes":""},"categories":[32,31,4],"tags":[],"class_list":["post-839","post","type-post","status-publish","format-standard","hentry","category-playframework","category-scala","category-tech"],"_links":{"self":[{"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/839","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=839"}],"version-history":[{"count":7,"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/839\/revisions"}],"predecessor-version":[{"id":846,"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/839\/revisions\/846"}],"wp:attachment":[{"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=839"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=839"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=839"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}