Your SlideShare is downloading. ×
0
GETTING STARTED
WITH DRUPAL 8
CODE
Environment Setup
D8 Requirements
SECTION TITLE
● Web Server
o Apache 2.0 or Nginx 1.1 (or greater)
● PHP 5.4.2 (or greater)
● One of the fo...
Personal Webserver Tools
SECTION TITLE
● Acquia Dev Desktop
o http://www.acquia.com/downloads
● MAMP
o http://www.mamp.inf...
Drush 7 (D6, D7, D8)
SECTION TITLE
Drush 7.x (dev) Required
o https://github.com/drush-ops/drush
Install with Composer:
#D...
Database Setup
SECTION TITLE
● Create your database
o phpMyAdmin, Sequel Pro or Other
● Make note of:
o Database name
o Us...
Site Install
D8 Install
SECTION TITLE
● Clone in Drupal from Git
o https://www.drupal.org/project/drupal/git-
instructions
o Use the 8....
Fix Some Issues
D8 Issues Queue
SECTION TITLE
● Issues Queue
o https://www.drupal.org/project/issues/drupal
● Filters
o Filter Version by ...
D8 Issues Help
SECTION TITLE
● Re-rolling patches
o https://www.drupal.org/patch/reroll
● Creating an interdiff (patching ...
Configuration
D8 Configuration
SECTION TITLE
● Core Configuration Manager
● Configuration Managed in Code
● Uses human-readable text fil...
D8 Configuration
SECTION TITLE
● Supports Import/Export of
configuration
● Binary file imports or direct code
paste
● Only...
D8 Module Configurations
SECTION TITLE
● Modules (core and contrib) have
configuration files (.yml)
● Most live in the mod...
Path: core/modules/language/config/install/tour.tour.language.yml
id: language
module: language
label: 'Content translatio...
THANK YOU!
Keenan Holloway
Senior Web Developer
kholloway@forumone.com
www.forumone.com
Upcoming SlideShare
Loading in...5
×

Getting started with drupal 8 code

4,484

Published on

Need start to finish help on getting Drupal 8 up and running locally? Ready to start contributing code?

This will help you get everything installed locally including Drush and gives basic information about Configuration for those new to it.

Published in: Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
4,484
On Slideshare
0
From Embeds
0
Number of Embeds
16
Actions
Shares
0
Downloads
12
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Transcript of "Getting started with drupal 8 code"

  1. 1. GETTING STARTED WITH DRUPAL 8 CODE
  2. 2. Environment Setup
  3. 3. D8 Requirements SECTION TITLE ● Web Server o Apache 2.0 or Nginx 1.1 (or greater) ● PHP 5.4.2 (or greater) ● One of the following databases: o MySQL 5.0.15 (or greater), MariaDB 5.1.44 (or greater), Percona Server 5.1.70 (or greater), PostgreSQL 8.3 (or greater), SQLite 3.4.2 (or greater)
  4. 4. Personal Webserver Tools SECTION TITLE ● Acquia Dev Desktop o http://www.acquia.com/downloads ● MAMP o http://www.mamp.info/en/downloads/ (PHP 5.4.4+) ● XAMPP o https://www.apachefriends.org/download.html
  5. 5. Drush 7 (D6, D7, D8) SECTION TITLE Drush 7.x (dev) Required o https://github.com/drush-ops/drush Install with Composer: #Download composer curl -sS https://getcomposer.org/installer | php #Move it to a global location (sudo might be required) mv composer.phar /usr/local/bin/composer #Make sure Composer’s global bin directory is on the system PATH (recommended) Add “PATH=$PATH:$HOME/.composer/vendor/bin” to ~/.bashrc #Have Composer install drush composer global require drush/drush:dev-master
  6. 6. Database Setup SECTION TITLE ● Create your database o phpMyAdmin, Sequel Pro or Other ● Make note of: o Database name o User Name o User Password
  7. 7. Site Install
  8. 8. D8 Install SECTION TITLE ● Clone in Drupal from Git o https://www.drupal.org/project/drupal/git- instructions o Use the 8.x branch o git clone --branch 8.x http://git.drupal.org/project/drupal.git cd drupal ● Typical install.php page o ex: http://localhost:8888/install.php
  9. 9. Fix Some Issues
  10. 10. D8 Issues Queue SECTION TITLE ● Issues Queue o https://www.drupal.org/project/issues/drupal ● Filters o Filter Version by 8.x issues o Issue can be any other status but “Closed” or “Reviewed by the community” o Priority is great to follow o Novice tag for challenge level
  11. 11. D8 Issues Help SECTION TITLE ● Re-rolling patches o https://www.drupal.org/patch/reroll ● Creating an interdiff (patching a patch) o https://www.drupal.org/documentation/git/interdiff ● Viewing Commit History o http://git-scm.com/book/en/Git-Basics-Viewing-the- Commit-History
  12. 12. Configuration
  13. 13. D8 Configuration SECTION TITLE ● Core Configuration Manager ● Configuration Managed in Code ● Uses human-readable text files in the YAML (.yml) format ● https://www.drupal.org/documentation /administer/config
  14. 14. D8 Configuration SECTION TITLE ● Supports Import/Export of configuration ● Binary file imports or direct code paste ● Only supports configuration import from same site
  15. 15. D8 Module Configurations SECTION TITLE ● Modules (core and contrib) have configuration files (.yml) ● Most live in the module’s “config” directory ● Install sub-directory configuration imported on module install
  16. 16. Path: core/modules/language/config/install/tour.tour.language.yml id: language module: language label: 'Content translation' langcode: en routes: - route_name: system.modules_list - route_name: language.content_settings_page tips: content-translation-settings-enable-module: id: content-translation-settings-enable-module plugin: text label: 'Content Translation' body: 'Specify the parts of the website that may be translated, and default languages for them.<br>Now, click to the right on <em>Allows users to translate content entities</em>, and then click the <em>Next</em> button below.' weight: 1 attributes: data-id: module-content_translation
  17. 17. THANK YOU! Keenan Holloway Senior Web Developer kholloway@forumone.com www.forumone.com
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×