You may wish to know that I am writing Vue on Rails book with Richard LaFranchi
Some examples of Rails 5.1.x app using Vue 2.x.
- Counter-vuex
- Shopping-cart-vuex
- Hackernews
- Prerender-spa-plugin
- Vue Todo with Rails controllers
- Vue-router example
git clone ytbryan/webpacker-vue-examples cd webpacker-vue-examples bundle install yarn install
Demonstrates simple vuex
Demonstrates vuex
Demonstrates vue-router, vuex, server-render
Demonstrates prerendering with vue-router. Good for SEO and easier than server rendered solution.
Simple Todo built using Vue with Rails controller.
Demonstrates the power of a vue-router
This repo is my exploration of Vue on Ruby on Rails via Webpacker. It serves as a guide/reminder for myself to see Vue's concept on Rails. It also open up opportunities for community contribution to see how Vue can be structured on Rails.
-
Send a pull request here.
-
Send an issue here.
MIT