Posts

Showing posts with the label Composer

Setup development environment for Drupal on windows 10

Being a Drupal developer, I would prefer to work on Mac or Linux (ubuntu) operating system for fast and hassle free development work, but some times you will not get such preferences, may be due to organizations’ norms. Let's say you got a Windows machine for your local development where you have been assigned to a Drupal project. Let's dive into process of installing all required software needed. I am assuming individual have permission to install WSL from organizations administrator team. Following sets of applications will be require in order to setup local environment: Install Windows Subsystem for Linux ( WSL ) Install VS code  along with WSL plugin. Install PHP, MySql, Apache2/Nginx: sudo apt-get install lamp-server^ Git: sudo apt-get install git Composer Drush: composer global require drush/drush That's all you need to start with your develoment You might need to create separate user f...

Install drupal 8 project with composer using default template and modify where document root is other than web.

This would require to install composer first, then follow below command to create drupal 8 project with composer. $ composer create-project drupal-composer/drupal-project:8.x-dev testing.com --stability dev --no-interaction --no-install Above command will create drupal 8 project with folder name testing.com, now make the changes in composer.json under "extra">>"installer-paths", there is path like "web/core": ["type:drupal-core"], replace all the occurrence of web with your folder name. Now run the command $ composer install This will download drupal 8 code with its dependencies defined in composer.json file