Install TheMAG as composer-managed Drupal site

  1. Unzip the INSTALLATION/ 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 site. Run the composer install command from inside "themag-drupal-project" directory.
cd themag-drupal-project

composer install

Note that drupal-project installs Drupal itself in the "web" directory (themag-drupal-project/web). Consider that on a production environment you have to configure your domain to point in that directory.

  1. Use Drush and install the site form configuration. Run drush site:install from inside web directory:
cd web

drush site:install \
  --existing-config  \
  --db-url=mysql://db_user:db_pass@localhost/db_name \
  --account-name="demo" \
  --account-pass="demo" \

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.

  1. If you'd like to start with demo content, enable the TheMAG Demo module:
drush en -y themag_demo

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

Using Composer:
Drupal 8 Composer Best Practices: