# 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).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.scandipwa.com/structure/folder-structure.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
