This is a template for DDEV Drupal projects for defining the base DDEV setup for Drupal. It comes with predefined .ddev/config.wunderio.yaml file and .ddev/dist folder which contents is copied to your project root.
Initialize your Drupal 10 project. Project name parameter is optional, but it's advisable to use domain name as your project name as that's used for for the subdomain of ddev.site eg if project name is example.com, then localhost URL will become example.com.ddev.site.
ddev config --project-type=drupal10 --docroot=web --project-name=example.com
Install wunderio/ddev-drupal Composer package with DDEV and restart DDEV:
ddev composer require wunderio/ddev-drupal --dev && ddev restart
Add changes to GIT (note that below command uses -p, so you need to say 'y'es or 'n'o if it asks what to commit):
git add .ddev/ &&
git add drush/sites/ &&
git add composer.lock &&
git add -p composer.json web/sites/default/settings.php grumphp.yml &&
git commit
Also note that whenever you update wunderio/ddev-drupal package, you need to add everything under .ddev to GIT.
Import database:
ddev import-db --file=some-sql-or-sql.gz.file.sql.gz
or install site:
ddev drush si
Create admin link and login:
ddev drush uli