Full-Stack Web Development with Vue.js and Node

(singke) #1
Introducing Vuex Chapter 8

Creating a simple Vuex application


We will start a fresh new application to learn the basics of Vuex. Let's get started.


Let's first create a new application:


$ vue init webpack vuex-tutorial

The preceding code snippet will ask you few questions about the application setup. You
can choose what you want to keep. I will go with the following configuration:


After the installation, navigate to the project directory:


$ cd vuex-tutorial

The next thing to do is to run the following command:


$ npm install
Free download pdf