getting started with drupal 8 code

17
GETTING STARTED WITH DRUPAL 8 CODE

Upload: forum-one

Post on 08-Sep-2014

1.055 views

Category:

Technology


5 download

DESCRIPTION

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.

TRANSCRIPT

Page 1: Getting started with drupal 8 code

GETTING STARTED WITH DRUPAL 8 CODE

Page 2: Getting started with drupal 8 code

Environment Setup

Page 3: Getting started with drupal 8 code

D8 Requirements

SECTION TITLE

● Web Servero 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)

Page 4: Getting started with drupal 8 code

Personal Webserver Tools

SECTION TITLE

● Acquia Dev Desktopo http://www.acquia.com/downloads

● MAMPo http://www.mamp.info/en/downloads/ (PHP 5.4.4+)

● XAMPPo https://www.apachefriends.org/download.html

Page 5: Getting started with drupal 8 code

Drush 7 (D6, D7, D8)

SECTION TITLE

Drush 7.x (dev) Requiredo 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

Page 6: Getting started with drupal 8 code

Database Setup

SECTION TITLE

● Create your databaseo phpMyAdmin, Sequel Pro or Other

● Make note of:o Database nameo User Nameo User Password

Page 7: Getting started with drupal 8 code

Site Install

Page 8: Getting started with drupal 8 code

D8 Install

SECTION TITLE

● Clone in Drupal from Gito https://www.drupal.org/project/drupal/git-instructionso Use the 8.x brancho git clone --branch 8.x

http://git.drupal.org/project/drupal.git cd drupal

● Typical install.php pageo ex: http://localhost:8888/install.php

Page 9: Getting started with drupal 8 code

Fix Some Issues

Page 10: Getting started with drupal 8 code

D8 Issues Queue

SECTION TITLE

● Issues Queueo https://www.drupal.org/project/issues/drupal

● Filterso Filter Version by 8.x issueso Issue can be any other status but “Closed” or “Reviewed

by the community”o Priority is great to followo Novice tag for challenge level

Page 11: Getting started with drupal 8 code

D8 Issues Help

SECTION TITLE

● Re-rolling patcheso https://www.drupal.org/patch/reroll

● Creating an interdiff (patching a patch)o https://www.drupal.org/documentation/git/interdiff

● Viewing Commit Historyo http://git-scm.com/book/en/Git-Basics-Viewing-the-Com

mit-History

Page 12: Getting started with drupal 8 code

Configuration

Page 13: Getting started with drupal 8 code

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

Page 14: Getting started with drupal 8 code

D8 Configuration

SECTION TITLE

● Supports Import/Export of configuration● Binary file imports or direct code paste● Only supports configuration import from

same site

Page 15: Getting started with drupal 8 code

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

Page 16: Getting started with drupal 8 code

Path: core/modules/language/config/install/tour.tour.language.yml

id: languagemodule: languagelabel: 'Content translation'langcode: enroutes: - route_name: system.modules_list - route_name: language.content_settings_pagetips: 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

Page 17: Getting started with drupal 8 code

THANK YOU!Keenan HollowaySenior Web [email protected]