> For the complete documentation index, see [llms.txt](https://docs.scandipwa.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.scandipwa.com/structure/folder-structure.md).

# Directory Structure

When creating an app for the first time, the folder structure of the application will look as follows:

```bash
📁  my-app
├── 📄  README.md
├── 📄  composer.json
├── 📁  i18n
├── 📁  magento
|  ├── 📁  etc
|  |  └── 📄  view.xml
|  ├── 📄  registration.php
|  └── 📄  theme.xml
├── 📁  node_modules
├── 📄  package.json
├── 📁  public
├── 📁  src
└── 📄  yarn.lock
```

{% hint style="info" %}
**There `public`and `src` folders are empty**. Do not panic! You will use them to [create overrides](/developing-with-scandi/override-mechanism.md). The application should compile with them being empty!
{% endhint %}

## ScandiPWA theme `src` structure

ScandiPWA theme (aka. your [parent theme](https://docs.create-scandipwa-app.com/themes/extensions-and-themes#parent-theme)) has the same root folder structure, but much more files in the `src` folder. They are structured as follows:

```bash
📁  src
├── 📁  component # a place for all components
├── 📁  query # a place for GraphQL queries
├── 📁  route # a place for all root pages
├── 📁  store # a Redux store declarations
├── 📁  type # a PropType declarations
├── 📁  util # all utility functions
├── 📄  index.js # application entrypoint
└── 📄  service-worker.js # service worker entrypoint
```

More information about the structure and contents of these folders:

{% content-ref url="/pages/-MNcqDmUflG0I\_EL\_pGb" %}
[Building Blocks](/structure/building-blocks-summary.md)
{% endcontent-ref %}

## CMA (Create Magento App) structure

CMA structure is similar to the [default Magento folder structure](https://www.mageplaza.com/devdocs/file-structure-magento-2.html), but with a `package.json` file in the root directory. For more details, refer to the [official CMA guide](https://docs.create-magento-app.com/getting-started/folder-structure).
