/demo-project

An out of the box demo project

Primary LanguagePHPGNU General Public License v2.0GPL-2.0

Drupal Commerce Demo Build Status

Use Composer to get a Drupal Commerce demo.

Quick start:

composer create-project drupalcommerce/demo-project demo-commerce --stability dev --no-interaction
cd demo-project
composer run preview

Belgrade product example

Usage

First you need to install composer.

Note: The instructions below refer to the global composer installation. You might need to replace composer with php composer.phar (or similar) for your setup.

After that you can create the project:

composer create-project drupalcommerce/demo-project demo-commerce --stability dev --no-interaction

The composer create-project command passes ownership of all files to the project that is created. You should create a new git repository, and commit all files not excluded by the .gitignore file.

Then run

composer run preview

To reinstall

composer run cleanup
composer run preview

What does the demo do?

  • Drupal is installed in the web directory.
  • Modules (packages of type drupal-module) are placed in web/modules/contrib/
  • Theme (packages of type drupal-theme) are placed in web/themes/contrib/
  • Profiles (packages of type drupal-profile) are placed in web/profiles/contrib/
  • Creates default writable versions of settings.php and services.yml.
  • Creates the web/sites/default/files directory.
  • Latest version of DrupalConsole is installed locally for use at bin/drupal.