PhpStorm Setup
Warning This guide is under construction! The respective TL (Team Lead) will let you know as soon as it can be used in full.
For questions regarding the setup on Windows, contact Tobias Hopp or Hasan Dogan.
The Docker containers must be running during this process!
Shopware specific steps in Programming (general) must be done beforehand!
Project Setup
In the PhpStorm start screen, click "open"; at the very bottom, \\wsl$ should be available - this connects WSL via network to the Windows filesystem. Navigate to the project root there and click "Ok".
The path will look something like this:
\\wsl$\<nameOfWSLDistro>\home\<nameOfWSLUser>\<projectCollectionFolder>\<projectFolder>
Mappings
Root path: /project
Web server URL: http://localhost:8000
Local path: \\wsl$\<yourDistribution>\home\<yourLinuxUser>\<projectCollectionFolder>\<projectFolder>
Deployment path and Web path: /
On the left side, the server name must be in bold.
xDebug Configuration
In PhpStorm via "File" to "Settings" and there "PHP" -> "Servers" -> "Add new server" (Plus icon).
Name: docker
Host: localhost
Port: 8000
Check the box for "Use path mappings (select if the server is remote or symlinks are used)".
Double-click on the Project files in the right column and select the corresponding path via the dropdown.
Then "Apply" and "Ok".
Database Configuration
Database Type: MariaDB
Host: localhost
Port: 3306
Authentication: User & Password
User: root
Password: - (Right Click and select "Set Empty")
Database: project
URL: jdbc:mariadb://localhost:3306/project