Telerik DevRel
Developer Relations team @ Telerik!
Jen Looper
Senior Developer Advocate, Progress
Ex French Teacher
Co-Founder: Wellesley Chinese Language School
Founder and CEO: Vue Vixens
"the state of the art"
A framework for building native cross-platform mobile apps
No-compromise, smoothly-animating native mobile apps for iOS and Android
You know JavaScript? You know NativeScript!
Use JavaScript, CSS, XML to construct the app
Use no framework, Angular, or Vue.js! We even have experimental ports for Aurelia and Preact
+
=
NativeScript-Vue.org
Vue's 2.0 adoption of the virtual DOM enables native mobile rendering (Angular 2+ is similar)
Vue is lightweight so highly appropriate for mobile
Vue offers a great way for web developers to embrace mobile platforms via NativeScript or Weex
NativeScript and Vue have great code-sharing potential!
1. use of nativescript-vue
import Vue from 'vue';
import Vue from 'nativescript-vue';
<web>
{NativeScript}
Vue.js
NativeScript-Vue
NativeScript
2. bootstrapping the app
<web>
{NativeScript}
3. template markup
<web>
{NativeScript}
Download the 2 NativeScript playground apps
Vue-CLI template!
$ npm install -g @vue/cli @vue/cli-init
$ vue init nativescript-vue/vue-cli-template <project-name>
$ cd <project-name>
$ npm install
$ tns run ios/android --bundle
Manage classrooms and assign texts for students to read aloud to perfect their accents
web
mobile
web
mobile
web
mobile
web
mobile
2 prototypes
Fork NativeScript-Vueloader and make it do the work
https://github.com/nativescript-vue/nativescript-vue-webpack-template
web
mobile
web + mobile
web + mobile
rely on file naming conventions built by Webpack
https://github.com/tralves/ns-vue-codeshare-demo
Home.vue
Home.web.vue
leverage a CLI-3 plugin to scaffold a NativeScript-Vue app together with your Vue.js web app
*use a preset: (--preset mobile)
Join us on NativeScript Community Slack!
nativescript-vue.org
Core Contributor: Igor Randjelovic
Thank you!
@jenlooper
By Telerik DevRel
Vue.js Roadtrip - Paris (45 mins)