{"id":5760,"date":"2022-10-15T12:15:22","date_gmt":"2022-10-15T03:15:22","guid":{"rendered":"https:\/\/suzutukiblog.com\/?p=5760"},"modified":"2022-12-04T05:58:17","modified_gmt":"2022-12-03T20:58:17","slug":"nuxt","status":"publish","type":"post","link":"https:\/\/suzutukiblog.com\/index.php\/2022\/10\/15\/nuxt\/","title":{"rendered":"nuxt\u3068Rails\u3067\u30a2\u30d7\u30ea\u3092\u4f5c\u308b(1)\u74b0\u5883\u69cb\u7bc9\u6982\u8981"},"content":{"rendered":"<h1>Nuxt\u3068Rails\u3067\u30a2\u30d7\u30ea\u3092\u4f5c\u3063\u305f\u3068\u304d\u306e\u624b\u9806\u306e\u74b0\u5883\u69cb\u7bc9\u6982\u8981\u3067\u3059\u3002<\/h1>\n<h2>\u76ee\u6a19\uff1a\u5fd8\u308c\u305f\u6642\u306b\u3059\u3050\u306b\u601d\u3044\u51fa\u305b\u308b\u3088\u3046\u306b\u3056\u3063\u304f\u308a\u89e3\u8aac\u3059\u308b\u3002<\/h2>\n<h1>\u7b2c0\u7ae0\uff1aRails\u306e\u74b0\u5883\u69cb\u7bc9(\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u78ba\u8a8d)<\/h1>\n<h3>0:Homebrew\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p><a href=\"https:\/\/brew.sh\/index_ja.html\" target=\"_blank\" rel=\"noopener\">Homebrew<\/a>\u304b\u3089\u300c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u300d\u306e\u898b\u51fa\u3057\u306e\u4e0b\u306b\u3042\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u884c\u3092macOS\u306e\u30bf\u30fc\u30df\u30ca\u30eb\u306b\u30b3\u30d4\u30fc\uff06\u30da\u30fc\u30b9\u30c8\u3057\u307e\u3059\u3002<\/p>\n<pre>\/bin\/bash -c \"$(curl -fsSL https:\/\/raw.githubusercontent.com\/Homebrew\/install\/HEAD\/install.sh)\"\r\nbrew -v<\/pre>\n<h3>1\uff1arbenv\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<pre>brew install rbenv\r\nrbenv --version<\/pre>\n<h3>2:rbenv\u306bPATH\u3092\u901a\u3059<\/h3>\n<pre>echo 'export PATH=\"$HOME\/.rbenv\/bin:$PATH\"' &gt;&gt; ~\/.bash_profile\r\necho 'if which rbenv &gt; \/dev\/null; then eval \"$(rbenv init -)\"; fi' &gt;&gt; ~\/.bash_profile\r\nsource ~\/.bash_profile<\/pre>\n<h3>3:Ruby\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<pre>rbenv install 3.0.0<\/pre>\n<h3>4:\u30ed\u30fc\u30ab\u30eb\u3067\u4f7f\u3046Ruby\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u6307\u5b9a<\/h3>\n<pre>rbenv local 3.0.0\r\nruby -v<\/pre>\n<h2>5:Bundler\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<pre>gem install bundler\r\nbundler -v<\/pre>\n<h3 class=\"p1\">6:yarn\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb(yarn\u306fJavaScript\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u5229\u7528\u306b\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u30de\u30cd\u30fc\u30b8\u30e3)<\/h3>\n<pre>brew install yarn\r\nyarn -v<\/pre>\n<h3 class=\"p1\">7:Rails\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<pre>gem install rails -v 6.1.3.1\r\nrails -v<\/pre>\n<h1>NuxtJS\u306e\u74b0\u5883\u69cb\u7bc9\uff08macOS\uff09<\/h1>\n<h3>\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u30c4\u30fc\u30eb\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>Nuxt\u3068\u3044\u3046\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u306b\u306f\u3001<br \/>\n\u69d8\u3005\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u4ed6\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af(Rails\u3068\u304b)\u3068\u540c\u3058\u3088\u3046\u306b\u3001<strong>\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u30c4\u30fc\u30eb<\/strong>\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>Rails\u306b\u306f\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u30c4\u30fc\u30eb\u306bGem\u3001<br \/>\n\u3055\u3089\u306b\u305d\u306eGem\u3092\u7ba1\u7406\u3059\u308bBundler\u306a\u3069\u304c\u5b58\u5728\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\nNuxt\u306e\u74b0\u5883\u69cb\u7bc9\u3068\u3057\u3066\u306fNpm\u3092\u5229\u7528\u3057\u307e\u3059\u3002<\/p>\n<h3>Npm\u306e\u8aac\u660e<\/h3>\n<p>Npm\u306e\u6b63\u5f0f\u540d\u79f0\u306fNode Package Manager\u3067\u3059\u3002<\/p>\n<p>Npm\u306fNode.js\u3068\u3044\u3046\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u7d44\u307f\u8fbc\u307e\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>Node.js\u306fJavaScript\u3092\u5b9f\u884c\u3059\u308b\u74b0\u5883\u3067\u3059\u3002<\/p>\n<p>\u672c\u6765\u3001JavaScript\u306fWeb\u30d6\u30e9\u30a6\u30b6\u306b\u7d44\u307f\u8fbc\u307e\u308c\u3066\u3044\u3066\u3001<br \/>\n\u30d6\u30e9\u30a6\u30b6\u4e0a\u3067\u3057\u304b\u5b9f\u884c\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001Node.js\u306f\u305d\u306e\u5834\u3067\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u5b9f\u884c\u3092\u53ef\u80fd\u306b\u3057\u3066\u304f\u308c\u307e\u3059\u3002<br \/>\n\u3055\u307e\u3056\u307e\u306a\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u5b58\u5728\u3057\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001\u305d\u308c\u3089\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u884c\u3046\u30c4\u30fc\u30eb\u3068\u3057\u3066\u3001<strong>Node.js<\/strong>\u306b\u7d44\u307f\u8fbc\u307e\u308c\u3066\u3044\u308b\u306e\u304c\u4eca\u56de\u4f7f\u7528\u3059\u308b<strong>Npm<\/strong>\u306a\u306e\u3067\u3059\u3002<\/p>\n<p><strong>\u4ed6\u306eJavaScript\u30e9\u30a4\u30d6\u30e9\u30ea<\/strong>\u3082<strong>Npm<\/strong>\u3092\u4f7f\u3063\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u304d\u3066\u3044\u307e\u3059\u3002<br \/>\nNuxt\u3082Npm\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u308b\u305f\u3081\u3001Node.js\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u3044\u3046\u308f\u3051\u3067\u3059\u3002<\/p>\n<h3 class=\"p1\">8:Node.js\u3068Npm\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<pre>brew install node\r\nnode -v\r\nnpm -v<\/pre>\n<p class=\"p1\">\u4ee5\u4e0a\u3067\u74b0\u5883\u69cb\u7bc9\u306f\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Nuxt\u3068Rails\u3067\u30a2\u30d7\u30ea\u3092\u4f5c\u3063\u305f\u3068\u304d\u306e\u624b\u9806\u306e\u74b0\u5883\u69cb\u7bc9\u6982\u8981\u3067\u3059\u3002 \u76ee\u6a19\uff1a\u5fd8\u308c\u305f\u6642\u306b\u3059\u3050\u306b\u601d\u3044\u51fa\u305b\u308b\u3088\u3046\u306b\u3056\u3063\u304f\u308a\u89e3\u8aac\u3059\u308b\u3002 \u7b2c0\u7ae0\uff1aRails\u306e\u74b0\u5883\u69cb\u7bc9(\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u78ba\u8a8d) 0:Homebrew\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb Hom [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[27],"tags":[],"class_list":["post-5760","post","type-post","status-publish","format-standard","hentry","category-programming-note"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/posts\/5760","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/comments?post=5760"}],"version-history":[{"count":9,"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/posts\/5760\/revisions"}],"predecessor-version":[{"id":6750,"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/posts\/5760\/revisions\/6750"}],"wp:attachment":[{"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/media?parent=5760"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/categories?post=5760"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/tags?post=5760"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}