A Vue2 training with vue-router/vuex/vee-validate!
- Create app key in http://rest-api.noveogroup.com.
- Create
.env
file and edit it:
$ cp .env.defaults .env
$ nano .env # add APP_KEY to this file
- Install npm dependencies:
# install dependencies
$ npm install
# serve with hot reload at localhost:8081
$ npm run dev
# build for production with minification
$ npm run build
To validate (through eslint) javascript code in .vue
files, add follow lines in Preferences > Setting
:
"eslint.validate": [
"javascript",
"javascriptreact",
"html",
"vue"
],
"[vue]": {
"editor.tabSize": 2,
"editor.insertSpaces": true
},
"eslint.options": {
"extensions": [".html", ".js", ".vue", ".jsx"]
}