Git Product home page Git Product logo

incrementally-adopting-vuejs's Introduction

Incrementally Adopting Vue.js


March 26, 2019 @ Atlanta Vue.js Meetup

Incrementally Adopting Vue.js

Presentation Slides


Overview

Adopting a modern JS framework enables your team to move fast, innovate, and use modern language features. If your team is working with an existing legacy application, how can you reap the benefits of Vue.js without a full rewriting or starting from zero? In this talk, we’ll take a look at how you can get the most out of Vue.js without having to rewrite your existing applications. We will leverage SFC, Code Splitting, CDN deployments and the modern @vue/cli toolchain – all while shipping to a legacy frontend application.


This talk proposes a solution for loading a @vue/cli appliction from a CDN and mounting it inside of an existing application. Full code splitting and file hash / caching support are maintained through the use of manifest files. Development experience is maintained by developing and testing your Vue application in isolation while rendering the resulting components in one or more other application environments.

Applications

/legacy - represents an existing application you wish to enhance with Vue.js

/vue - represents a modern Vue.js application you wish to render inside /legacy

In this demo, the output from the /vue application will be rendered inside of the /legacy application, served from a locally hosted mock CDN.

Setup

The following commands should be run in the root of the project to setup, build and serve the demo application components. Once complete, the demo app will be running on http://localhost:8081.

# Install Dev Dependencies
$ npm install

# Install Vue.js App Dependencies
$ npm run vue:install

# Build Vue.js App
$ npm run vue:build

# Launch Legacy Server
$ npm run legacy:serve

# In a separate terminal
# Launch Simulated `CDN`
$ npm run vue:serve

incrementally-adopting-vuejs's People

Contributors

brandon93s avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.