Site Building

3.5. Setting Up an Environment with DDEV for Drupal 10, 11

Goal

Set up a local development environment using DDEV to serve the application and Composer to download the required files.

Why use DDEV?

DDEV is a local development environment for PHP applications built on Docker. It includes all the necessary components to run the core software, and is used by many developers in the Drupal community.

Steps

  1. Follow the official DDEV installation instructions to install DDEV on your local machine. DDEV is available for Windows, Mac, and Linux. The installation process is different for each operating system, so be sure to follow the instructions for your OS.
  2. After installing DDEV, follow the Drupal Quickstart instructions to download the core software using Composer and install it in the DDEV environment.
  3. Run the command ddev launch from the directory created in the previous step to open the site in your web browser and confirm the environment is working correctly.

Additional resources

Attributions

Written and edited by Joe Shindelar at Drupalize.Me.

Drupal User Guide