A Vue.js Project Using Vue 2 and Rails 5
This template is intended for use with the Rails framework. It is inteded to separate client and server and with Rails projects initialized using the --api flag.
Simply setup a new rails project
rails new vue-rails --api
Make sure you have vue-cli installed and run the following using the same project name
vue init rlafranchi/webpack vue-rails
cd vue-rails
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# run unit tests
npm run unit
# run e2e tests
npm run e2e
# run all tests
npm test
For detailed explanation on how things work, checkout the guide and docs for vue-loader.