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.
Installing modules
cd ~/Sites/foobarddev composer require drupal/admin_toolbarddev drush -y en admin_toolbar_toolsDrop database and restart
cd ~/Sites/foobarddev drush -y site:install --site-name="\Hello World\" --account-name=admin --account-pass=admin'ddev launchOpen http://foobar.ddev.site in your browser and login with username
adminand passwordadmin.