We will create a vue.js app using vue-cli and jsonplaceholder
DEMO: http://hackathon-vuejs-1.herokuapp.com/#/
You must have npm installed in your machine.
# install npm and node
curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
sudo apt install nodejs
sudo apt install build-essential
sudo node -v && npm -v
You must set the correction permission do work correctly with nodejs. More info here
# install vue-cli
npm install -g vue-cli
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# run unit tests
npm run unit
# run all tests
npm test
For detailed explanation on how things work, checkout the guide and docs for vue-loader.