https://download.docker.com/mac/stable/Docker.dmg
Open the Terminal app and execute the following command.
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
3. Install the local PHP development system DDEV
In the Terminal execute the following command.
brew tap drud/ddev && brew install ddev
In the Terminal execute the following commands.
mkdir -p ~/Sites/foobar
cd ~/Sites/foobar
ddev config --project-type=drupal9 --docroot=web --create-docroot --composer-version=2
ddev start
yes | ddev composer create "drupal-composer/drupal-project:9.x-dev"
ddev drush -y site:install --site-name=\"Hello World\" --account-name=admin --account-pass=admin
ddev launch
Open http://foobar.ddev.site in your browser and login with username admin
and password admin
.
Open the Terminal app and execute the following commands.
cd ~/Sites/foobar
ddev start
Open http://foobar.ddev.site in your browser and login with username admin
and password admin
.
Windows
For Windows install Docker from https://download.docker.com/win/stable/Docker%20Desktop%20Installer.exe and DDEV from https://github.com/drud/ddev/releases/download/v1.13.0/ddev_windows_installer.v1.13.0.exe and then continue from step 4. from above.