If you don't want the hassle of installing and configuring your system before you can have a taste of NativeScript-Vue, the NativeScript Playground has you covered.
But if you already have your system ready for native development, you can start by using the vue-cli-template:
Supported features
.vue
single file componentsNote: If you choose to install DevTools, you won't be able to use
tns preview
, as the Preview app doesn't support one of the plugins DevTools uses.
$ npm install -g @vue/cli @vue/cli-init
$ vue init nativescript-vue/vue-cli-template <project-name>
$ cd <project-name>
$
$ npm install
$ # or
$ yarn install
$
$ tns preview
$ # or
$ tns run
This set of commands performs the following operations on your system:
@vue/cli-init
add-on.tns preview
, produces a QR code which can be used to preview the app on a device.tns run
, builds and runs the project on all connected devices or in native emulators.