-
Notifications
You must be signed in to change notification settings - Fork 1
Install Vue.js
Alexis ROLLAND edited this page Feb 3, 2019
·
1 revision
Personal notes to get started with Vue.js.
nodejs is required to be able to run npm, while npm is required to install vue-cli
$ sudo apt install nodejs npm
vue-cli is required to create a project template
$ sudo npm install -g vue-cli
webpack-simple is the project template, also install npm dependencies in the project folder
$ vue init webpack-simple foldername
$ cd foldername
$ npm install
vue-router is required to change vue components based on the URLs and their parameters
$ npm install --save vue-router
vue-resource is required to send http requests and use $http
object
$ npm install --save vue-resource
vuex is required to manage vue application state (data) in the application store
$ npm install --save vuex
$ npm run dev
$ npm run build