Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 942 Bytes

README.md

File metadata and controls

43 lines (29 loc) · 942 Bytes

vue2-rails

A Vue.js Project Using Vue 2 and Rails 5

A Vue Webpack template forked from vuejs-templates/webpack

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

Build Setup

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.