Folder structure
After creation, your project should look like this:
β”œβ”€β”€ πŸ“ node_modules
β”œβ”€β”€ πŸ“„ package.json
└── πŸ“„ README.md
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
β”œβ”€β”€ πŸ“ app
β”œβ”€β”€ πŸ“ bin
β”œβ”€β”€ πŸ“ dev
β”œβ”€β”€ πŸ“ generated
β”œβ”€β”€ πŸ“ lib
β”œβ”€β”€ πŸ“ node_modules
| β”œβ”€β”€ πŸ“ .create-magento-app-cache
| | β”œβ”€β”€ πŸ“ composer
| | | └── πŸ“„ composer.phar
| | β”œβ”€β”€ πŸ“ nginx
| | | └── πŸ“ conf.d
| | | └── πŸ“„ default.conf
| | β”œβ”€β”€ πŸ“„ port-config.json
| | └── πŸ“„ php-fpm.conf
| ... πŸ“ other packages
β”œβ”€β”€ πŸ“ phpserver
β”œβ”€β”€ πŸ“ pub
β”œβ”€β”€ πŸ“ setup
β”œβ”€β”€ πŸ“ var
β”œβ”€β”€ πŸ“ vendor
β”œβ”€β”€ πŸ“„ ... Magento 2 files
β”œβ”€β”€ πŸ“„ cma.js
β”œβ”€β”€ πŸ“„ package.json
└── πŸ“„ README.md
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.
​
Copy link