Skip to content

Instantly share code, notes, and snippets.

@macmladen
Created June 30, 2023 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save macmladen/1d10aff27e8449d4e68c82fba1a159f5 to your computer and use it in GitHub Desktop.
Save macmladen/1d10aff27e8449d4e68c82fba1a159f5 to your computer and use it in GitHub Desktop.
# Create and switch to directory
mkdir drupaljam
cd drupaljam
# Init DDEV
ddev config --project-type=drupal10 --docroot=web --create-docroot
ddev start
# Get Drupal, drush
ddev composer create drupal/recommended-project
ddev composer require drush/drush drupal/admin_toolbar
# Install the site and login
ddev drush site:install \
-y \
--account-name=admin \
--account-pass=admin \
--account-mail=next@bluefish.rs \
--site-mail=next@bluefish.rs \
--site-name=DrupalNext
# Just launch the site
ddev launch
# Login drush way
ddev drush uli
# Mac only
open -u $(ddev drush uli)
# Add admin_menu
ddev drush en -y admin_toolbar admin_toolbar_tools admin_toolbar_search admin_toolbar_links_access_filter \
# Add Chapter Three DrupalNext module
ddev composer require drupal/next
# Enable modules
ddev drush en -y next next_jsonapi
ddev drush cron
## NEXT
npx create-next-app -e https://github.com/chapter-three/next-drupal-basic-starter
@cooldrupal
Copy link

cooldrupal commented Mar 17, 2024

This is a brilliant script. I also like admin_toolbar module.
In my mind,, usually, the drush should be installed to the dev environment by "composer require --dev drush/drush"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment