Install TheMAG as composer-managed Thunder site

  1. Unzip the INSTALLATION/themag-thunder-project.zip to your development environment.
  2. The package provides a ready-made composer.json file which will install all you need to kick-start your composer-managed Thunder site. Run the composer install command from inside "themag-thunder-project" directory. Composer installs Drupal itself in the "docroot" directory (themag-thunder-project/docroot). Consider that on a production environment you have to configure your domain to point in that directory.
cd themag-thunder-project

composer install
  1. Use Drush to install TheMAG. Change db_user, db_pass, and db_name with your database info. The --account-name is your Drupal username and the --account-pass your Drupal password. The last line "thunder_module_configure_form.install_modules_thunder_demo=NULL" tells the installer not to install Thunder demo content so that you can install TheMAG Demo content.
cd docroot

bin/drush site:install thunder \
--existing-config \
--db-url=mysql://db_user:db_password@localhost/db_name  \
--account-name="demo" \
--account-pass="demo" \
--account-mail="your@email.com" \
thunder_module_configure_form.install_modules_thunder_demo=NULL
  1. When installation finishes, you can install the demo content:
bin/drush en -y themag_thunder_demo

To be able to run Drush commands without specifying a relative path to a local Drush installation (bin/drush), you need a Drush Launcher.


This articles will help you to understand how to manage your Drupal site with Composer:

Using Composer: https://www.drupal.org/docs/develop/using-composer
Drupal 8 Composer Best Practices: https://www.lullabot.com/articles/drupal-8-composer-best-practices