DDEV – probably the fastest way to deploy Drupal 10 locally.

By nnevill, 19 January, 2023

There are few several simple actions to do for deploying Drupal locally:
1.) Install Docker
2.) Install DDEV
3.) Run commands:

# Preparing folder for Drupal.
mkdir drupal10
cd drupal10

# Creating DDEV configuration file.
ddev config --project-type=drupal10 --docroot=web --create-docroot

# Preparing docker infrustructure.
ddev start

// Getting Drupal codebase.
ddev composer create "drupal/recommended-project:^10"
ddev composer require drush/drush

// Installing Drupal.
ddev drush site:install --account-name=admin --account-pass=admin -y

// Generating one time login link.
ddev drush uli

That's it.
Takes several (depends on internet connection and hardware of course) minutes to go.

Short Description
Fast way to install drupal on local machine using DDEV and composer.