Folder structure
After creation, your project should look like this:
1
β”œβ”€β”€ πŸ“ node_modules
2
β”œβ”€β”€ πŸ“„ package.json
3
└── πŸ“„ README.md
Copied!
Looks empty, isn't it? Well, that is because we haven't installed Magento 2 yet.
To install Magento 2 you need to bootstrap the project with start command.
After Magento 2 installation folder structure should look
1
β”œβ”€β”€ πŸ“ app
2
β”œβ”€β”€ πŸ“ bin
3
β”œβ”€β”€ πŸ“ dev
4
β”œβ”€β”€ πŸ“ generated
5
β”œβ”€β”€ πŸ“ lib
6
β”œβ”€β”€ πŸ“ node_modules
7
| β”œβ”€β”€ πŸ“ .create-magento-app-cache
8
| | β”œβ”€β”€ πŸ“ composer
9
| | | └── πŸ“„ composer.phar
10
| | β”œβ”€β”€ πŸ“ nginx
11
| | | └── πŸ“ conf.d
12
| | | └── πŸ“„ default.conf
13
| | β”œβ”€β”€ πŸ“„ port-config.json
14
| | └── πŸ“„ php-fpm.conf
15
| ... πŸ“ other packages
16
β”œβ”€β”€ πŸ“ phpserver
17
β”œβ”€β”€ πŸ“ pub
18
β”œβ”€β”€ πŸ“ setup
19
β”œβ”€β”€ πŸ“ var
20
β”œβ”€β”€ πŸ“ vendor
21
β”œβ”€β”€ πŸ“„ ... Magento 2 files
22
β”œβ”€β”€ πŸ“„ cma.js
23
β”œβ”€β”€ πŸ“„ package.json
24
└── πŸ“„ README.md
Copied!
Inside node_modules there is .create-magento-app-cache folder. It contains all configuration files and a local instance of Composer:
  • Composer itself.
  • PHP-FPM configuration file.
  • Nginx configuration file.
  • Port configuration file.
In your projects root directory also will be created cma.js file that contains CMA configuration: Magento configuration, Docker services configuration, host and SSL configuration.
If you are upgrading an existing CMA project, old Magento configuration from app-config.json file inside cache folder will be converted to magento field in cma.js file.
​
Last modified 10mo ago
Copy link