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/foobar
ddev composer require drupal/admin_toolbar
ddev drush -y en admin_toolbar_tools
Drop database and restart
cd ~/Sites/foobar
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 passwordadmin
.