A training workshop for people who develop websites using the component based approach.
Before anything else, follow these steps to get your local envrionment setup.
If you already have a system for creating a new Drupal 8 site locally (i.e. MAMP, LAMP, WAMP, AcquiaDev Desktop, etc.), you can go ahead and use that then follow these instructions:
-
Download and install the latest version of Drupal 8
-
Download and enable the following modules and their dependencies:
- Components Libraries
- UI_Patterns (enable all submodules except field groups)
- Display Suite
- Paragraphs
- Entity Reference Revisions
- Devel
- Admin Toolbar
-
Clone or download this repo anywhere on your machine
git clone https://github.com/mariohernandez/components
-
Copy the nashville theme from the repo into your drupal's
/themes/custom/ -
Make the nashville theme your default theme
-
Clear your caches.
- Install Lando
For Mac OS, download the latest version on GitHub. You can also install Lando on other platforms
- Install Composer
- Follow these instructions for your specific Operating System
- Great YouTube tutorial on installing and using composer.
- Clone or download this repo anywhere on your local machine
git clone https://github.com/mariohernandez/components
- Start Lando
Change into the directory of the repo to run all commands below:
lando start
- Install all PHP Dependencies with Composer
lando composer install
- Install Drupal
lando drush site-install config_installer --account-name=admin --account-pass=admin --db-url='mysql://drupal8:drupal8@database/drupal8' --site-name=Components
- Train your dragon.
- Click Structure | Display Suite | Settings
- Under Field Templates check the box for Enable Field Templates
- Click Save configuration
For your convenience we have compiled all training material, including step by step exercises in a gitbook. This will be the official material we will use during training and it's currently being tested and refined.