Vue on rails

Post on 29-Jan-2018

75 views 0 download

Transcript of Vue on rails

Vue on RailsHow to gently introduce modern client-side web frameworks to your Rails developers

@parasquidChief Problem Solver

at Mindvalley

We had a monolithic Rails app that served us well for

over 3 years

But mobile started becoming big

We needed to make endpoints that the mobile

app can use

During the first Ruby Conference in KL I gave a talk on how to build

cross platform applications by default

http://life.beyondrails.com/blog/2016/08/13/life-beyond-rails-building-cross-platform-applications/

We started the conversion March 2017

Here’s how it looks like right now

We’re concurrently developing new full-stack features, as

well as improving the codebase

The project was mostly a success: getting the team to learn a new framework, and getting management buy-in

Walk-through

SummaryStart with small wins

Be clear about tradeoffs (e.g. SEO)

Webpacker

Use a sandbox

Leverage Rails support for different output formats (html and json)

Work on replacing one component at a time

CaveatsYou will need to learn a new language and frameworks

You will need to think differently (server vs client, components)

Without SSR, SEO will get affected

You might have too much fun :D

@parasquidChief Problem Solver

at Mindvalley