rails5 + Vue.js +webpack の設定編 SPA開発(14) #Vue.js #web #SPA
index:
概要:
前のSPA 関連で、
rails5 の組合せとなります。
設定など
・rails アプリの作成
rails new vue12 --webpack=vue
・yarn を追加しておきます。
npm install -g yarn
・vue関係の追加
yarn add axios yarn add vue-router yarn add vue-template-compiler yarn add vuex yarn add vue-eslint-parser
初期ページの追加
・home_controller.rb
https://github.com/kuc-arc-f/vue12_ver1/blob/master/app/controllers/home_controller.rb
・routes.rb
https://github.com/kuc-arc-f/vue12_ver1/blob/master/config/routes.rb
・index.html.erb
https://github.com/kuc-arc-f/vue12_ver1/blob/master/app/views/home/index.html.erb
・http://localhost:3000/
で、TOPページ開きます。