Skip to content

Drupal is an open-source content management system (CMS) and web application framework that allows users to create and manage digital content easily. It is written in PHP and offers a flexible and extensible platform for building websites, web applications, and online communities.

Notifications You must be signed in to change notification settings

AbhayPai/drupal9-starter

Repository files navigation

DDev Setup with Drupal 9

Variants available for this drupal are:

  1. Drupal 9 with lando support
  2. Drupal 9 with probo support
  3. Drupal 9 with github workflow support
  4. Drupal 9 with automation deployment support
  5. Drupal 9 with ddev with solr support
  6. Drupal 9 with ddev with elasticsearch support

Prerequisite for this is installation of lando in development machine are:

  1. Colima
  2. Docker
  3. Ddev

This project also includes continuos integration of probo with drupal 9.

Helpful URL's

  1. Local drupal9-starter

Helpful URL's

  1. Local drupal9-starter

Step 1: Clone this respository

git clone https://github.com/AbhayPai/drupal9-starter.git

Step 2: Change directory to cloned project

cd drupal9-starter

Step 3: Start project

ddev start

Step 4: Configure settings.php for default site for local development

cp web/sites/development.services.rename-as-yml web/sites/development.services.yml

Helpful Commands


Drush to check available site aliases.

ddev drush sa

To get details of project.

ddev describe

To install composer packages.

ddev composer install <packagename>

To update composer packages.

ddev composer update <packagename>

To configure composer for phpcs.

ddev composer phpcs:config

To validate phpcs for custom code in themes.

ddev composer phpcs:themes

To validate phpcs for custom code in modules.

ddev composer phpcs:modules

To fix phpcs for custom code in modules.

ddev composer phpcbf:themes

To fix phpcs for custom code in themes.

ddev composer phpcbf:modules

To validate deprecated of custom code in modules.

ddev composer deprecated:modules

To validate deprecated of custom code in themes.

ddev composer deprecated:themes

To run phpunit of custom code in modules.

ddev composer phunit:modules

To install npm packages.

ddev npm install <packagename>

To update npm packages.

ddev npm update <packagename>

To use lint for custom js files.

ddev npm run lint:js:themes

To use lint for custom scss files.

ddev npm run lint:scss:themes

To compile scss files.

ddev npm run compile:scss

About

Drupal is an open-source content management system (CMS) and web application framework that allows users to create and manage digital content easily. It is written in PHP and offers a flexible and extensible platform for building websites, web applications, and online communities.

Topics

Resources

Stars

Watchers

Forks