In this simple module structure, you can have a /store/ directory that contains a /modules/ directory that keeps all the modules in this folder. Here are the steps to create this simple project structure:
- Create a /store/ directory with a /modules/ directory in it with the store modules, as follows:
// vuex-sfc/structuring-modules/basic/
├── index.html
├── entry.js
├── components
│ ├── app.vue
│ └── ...
└── store
├── index.js
├── actions.js
├── getters.js
├── mutations.js
└── modules
├── module1.js
└── module2.js
In this simple structure, /store/index.js is where we assemble modules from the /modules/ directory and export the store, along...