Vue with Inertia

Rails template with Vue.js and Inertia.js
Icons/chart bar
Used 6 times
Created by
B Bilal Budhani

Usage

Run this command in your Rails app directory in the terminal:

rails app:template LOCATION="https://railsbytes.com/script/z5OsYq"
Template Source

Review the code before running this template on your machine.

gem 'inertia_rails'
gem 'webpacker' if !defined?(Webpacker)

after_bundle do
  rails_command 'webpacker:install'
  rails_command 'webpacker:install:vue'
  run 'yarn add @inertiajs/inertia @inertiajs/inertia-vue'
end
Comments

Sign up or Login to leave a comment.

© 2021 GoRails, LLC