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 a template:
$ npm install -g @vue/cli @vue/cli-init
$ vue init nativescript-vue/vue-cli-template#legacy <project-name>
$ cd <project-name>
$ npm install
Next, run your app using:
$ npm run watch:<platform>
where platform is ios
or android
.
This set of commands performs the following operations on your system:
.vue
components and provides routing and Vuex state management out of the box. For more information about the available templates, see Templates.watch
option detects code changes and applies them automatically.