Skip to content

A base Drupal repo with essential Drupal modules and tools for Drupal projects

License

Notifications You must be signed in to change notification settings

valuebound/drupal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Drupal Base

Latest Stable Version License composer.lock

A composer workflow based Drupal repository to be used as a base for Drupal projets. It is bundled with standard tools for development like Drush, Drupal console, PHPUnit & PHPCS. A set of highly popular & necessary contributed modules is also included to serve a starting for any Drupal 8 project.

Follow the below steps to create a new projects

Pre-Requisites


Usage


  • Using composer get the repository
composer create-project valuebound/drupal drupal
  • Copy exmaple.docker-compose.yml to docker-compose.yml.
  • Copy example.env to .env
  • Update the .env file to suit set your variables for the container
  • Update docker to use Traefik reverse proxy (if you know what you are doing then only edit this file, else leave as it is).
  • Run the docker container
docker-compose up -d

Additional useful tips

  • To view the containers docker-compose ps
  • To stop all the container docker-compose stop
  • To restart the containers docker-compose restart
  • To remove the containers docker-compose rm

Drupal tools usage

  • Drush

The repository ships with Drush version 9.0.0. Ideally if you have Drush installed in your system you can directly use it like in any other project. If not use ./vendor/bin/drush [command].

** N.B - If the above doesn't work, use the docker-compose to run drush** docker-compose exec web drush [command]

  • Drupal Console

./vendor/bin/console [command]

  • PHP Codesniffer

./vendor/bin/phpcs [command]