In a Vue app, as long as you comply with the enforced rules we went through in the previous sections, there are no strict restrictions on how you should structure your store. Depending on how complex your store is, there are two recommended structures in this book that you can use in the following sections. Let's get started.
Creating a simple store module structure
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:
│ ├── app.vue
│ └── ...