Panshul Khurana
Working as a Drupal Developer, strongly believe in learning and sharing. When I'm not coding, I'm busy finding new cafes and reading books. Follow me on youtube : https://bit.ly/3cx19sn , Resume : https://panshulk.github.io
Let's Learn Drupal
Session 3
Drupal installation using Composer
Drush & Configuration Management
Git Basics - Host your website using git.
Let's Learn Drupal
What did we do in Previous Session?
Drupal manual installation
Drupal Basics
Porting a module from Drupal 7-8-9
Drupal Contrib vs Custom module
Let's Learn Drupal
What is Composer?
Let's Learn Drupal
What is Composer?
Composer is a tool for dependency management in PHP. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you.
Let's Learn Drupal
What does dependency management mean?
Let's Learn Drupal
What does dependency management mean?
What is a package in composer?
Let's Learn Drupal
What does dependency management mean?
What is a package in composer?
Why do we need it?
Let's Learn Drupal
What does dependency management mean?
What is a package in composer?
Why do we need it?
How to use it? Let's find out..
Let's Learn Drupal
Installation
Let's Learn Drupal
Some basic composer commands
Let's Learn Drupal
Some basic composer commands
"composer require <package-container>/<package-name>: <version>"
Let's Learn Drupal
Some basic composer commands
"composer require <package-container>/<package-name>: <version>"
"composer remove <package-container>/<package-name>"
Let's Learn Drupal
Some basic composer commands
"composer require <package-container>/<package-name>: <version>"
"composer remove <package-container>/<package-name>"
"composer install"
Let's Learn Drupal
Some basic composer commands
"composer require <package-container>/<package-name>: <version>"
"composer remove <package-container>/<package-name>"
"composer install"
"composer update"
Let's Learn Drupal
Some basic composer commands
"composer require <package-container>/<package-name>: <version>"
"composer remove <package-container>/<package-name>"
"composer install"
"composer update"
"composer <custom-script-command>"
Let's Learn Drupal
Drush
Let's Learn Drupal
Drush
What is it?
Let's Learn Drupal
Drush
What is it?
Drush is a command line shell and scripting interface for Drupal
Let's Learn Drupal
Drush
What is it?
Drush is a command line shell and scripting interface for Drupal
Drupal + Shell = Drush
Let's Learn Drupal
Why do we need it?
Let's Learn Drupal
Why do we need it?
What if we don't use drush?
Let's Learn Drupal
Why do we need it?
What if we don't use drush?
How is it different from Composer?
Let's Learn Drupal
DRUSH DEMO TIME!!
Let's Learn Drupal
Drush Basic Commands
"drush en <module-name>"
Let's Learn Drupal
Drush Basic Commands
"drush en <module-name>"
"drush pm-uninstall <module-name>"
Let's Learn Drupal
Drush Basic Commands
"drush en <module-name>"
"drush pm-uninstall <module-name>"
"drush cr" or "drush cc"
Let's Learn Drupal
Drush Basic Commands
"drush en <module-name>"
"drush pm-uninstall <module-name>"
"drush cr" or "drush cc"
"drush site:install"
Let's Learn Drupal
Drush Basic Commands
"drush en <module-name>"
"drush pm-uninstall <module-name>"
"drush cr" or "drush cc"
"drush site:install"
"drush cex" && "drush cim" - What is this????
Let's Learn Drupal
Configuration Management - Basic
Let's Learn Drupal
Git
Let's Learn Drupal
Git
VCS
Let's Learn Drupal
Git
VCS
Code Sharing
Let's Learn Drupal
Git
VCS
Code Sharing
Code Management
Let's Learn Drupal
Git
VCS
Code Sharing
Code Management
Work history
Let's Learn Drupal
Git
VCS
Code Sharing
Code Management
Work history
Collaboration
Let's Learn Drupal
Git
VCS
Code Sharing
Code Management
Work history
Collaboration
Security
Let's Learn Drupal
Git
VCS
Code Sharing
Code Management
Work history
Collaboration
Security
On-boarding
Let's Learn Drupal
Git
VCS
Code Sharing
Code Management
Work history
Collaboration
Security
On-boarding
Branching
Let's Learn Drupal
To summarise..
We have moved from conventional code sharing using physical file or drive to management using Version Control System.
Repository based storage
Original copy is never changed until done manually.
Can contain different code in different branches.
Let's Learn Drupal
Let's move to Installation & Usage
Let's Learn Drupal
Composer & Drupal Setup using Composer
What did we learn today?
Drush, Site installation using drush
Configuration management - basics
Git, host a drupal website on git.
Let's Learn Drupal
Assignment
Let's Learn Drupal
Resources
By Panshul Khurana
Working as a Drupal Developer, strongly believe in learning and sharing. When I'm not coding, I'm busy finding new cafes and reading books. Follow me on youtube : https://bit.ly/3cx19sn , Resume : https://panshulk.github.io