Vue on Rails: End-to-End Guide to Building Web Apps Using Vue.js and Rails
Authors: Bryan Lim
ISBN-10: 1484251156
ISBN-13: 9781484251157
Edition 版本: 1st ed.
Released: 2019-08-30
Print Length 页数: 212 pages
Book Description
Build modern and progressive web applications with Vue.js and Ruby on Rails. As the Rails community embraces JavaScript,this book answers your most pressing questions,including how to integrate front-end technologies with Rails,whether to build a single-page application,when and how to use JavaScript in your project,how to scaffold a Vue component in Rails,and how to configure Vue.js in a Rails project.
This book explores how to manage and understand priorities when working with Vue on Rails and how to determine the best configuration for your project. You’ll see how to reuse your Vue components in a Rails project with less coding and harness the component options,as well as how to use props,events and slots of Vue components. You’ll also use webpacker to set up your project and pass data from your Vue component to a Rails controller and back. Finally,you’ll learn which is the best configuration for the router and how to test and deploy your application.
These topics are essential for developers and product owners because they cover end-to-end advice for building a web application incrementally or from scratch. Vue.js on Rails shows you just how easy it is to build and maintain a modern web app and save hundreds of hours integrating these two technologies.
What You’ll Learn
Use Vue and Rails together to improve products
Build a web app with a focus on developer happiness
Take a pragmatic approach to web app development with practical code examples
Save time configuring Vue and Rails
Control and manage states in a Vue on Rails project
Part 1. Start Your Engines-The Technology
1. Introduction
2. Nuts and Bolts of Vue on Rails
3. Model,Vue,and Controller
Part ll. Hands on the Wheels-Tutorials
4. Real-World Applications Through Short Tutorials
5. Making a Real-Time Two-Player Game with Action Cable
6. Building an Image-Cropping Tool with Vue and Active Storage
Part ll. Turbo Charge-Production Ready
7. Testing,Deployment,and Troubleshooting
8. Conclusion-Finishing the Race