A hands-on training workshop by your friends at Mediacurrent.
This is a 4 hours training workshop to teach the basics of component-building and integration with Drupal 9.
This is a DDEV-Local-based project. You need to Install Docker and DDEV-local before proceeding.
-
Clone this repo
git clone git@github.com:mariohernandez/components-theming.git
-
Navigate to new project:
cd components-theming
-
Start up DDEV-local:
ddev start
-
Download and Install Drupal Core and PHP Dependencies:
ddev composer install
-
Run Drupal's install:
ddev drush site:install -y
-
Import a working database:
ddev import-db --src=web/db.sql
-
Start up Drupal:
ddev drush uli
and click or copy/paste the URL provide by DDEV.
The above steps will give you a working Drupal 9 site with demo content and basic components configuration. In addition, it provides a working custom theme with automated workflow for building components.
- Navigate to the theme's directory:
cd web/themes/custom/drupal9_theme
- Run
nvm install
- Run
nvm use
- Run
npm install
- Run
npm run build
- Run
npm run watch
(while working on building components)