This article will guide you on how to set up Vue.js authentication using vue-router. If we couple Vue.js with vue-router, we can build high-performance applications.
To run a Vue application:
1. Open the package.json file and add the following:
"dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js",
"start": "npm run dev",
"server": "node server/app",
"build": "node build/build.js"
2. We added the server script to help us start up the node server. Now, run the following command to start the server:
npm run server
3. Then create another terminal instance and run the Vue app like this:
npm run dev
This will build all the assets and start the application. You can open the link it shows you to see the application.