An example Drupal 9 application to use as a demo on Gary's stream.
Dependencies are managed using Composer, including Drupal core and all contrib projects. This project is based on drupal/recommended-project.
For more information, see:
- Starting a Site Using Drupal Composer Project Templates
- Using Composer to Install Drupal and Manage Dependencies
- Managing dependencies for a custom project
- Using Drupal's Composer Scaffold
The project is using Docker, Docker Compose and Workspace for local development.
Once Workspace is installed, run ws install
to create the required files, download Drupal core, the additional contrib modules and PHP libraries, and install Drupal.
If you are using Traefik (recommended), then the site should now be available at http://stream-demo.docker.localhost.
Compser commands can be run via the ws composer
command:
ws composer <command>
For example, to add the Admin Toolbar module:
ws composer require drupal/admin_toolbar
Drush commands can be run via the ws drush
command. For example, to rebuild the cache:
ws drush cache:rebuild
Alternatively, you could connect to the php
container using ws console
and run vendor/bin/drush <command>
within the container.