Getting started with drupal 8 code
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

Getting started with drupal 8 code

on

  • 2,624 views

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

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.

Statistics

Views

Total Views
2,624
Views on SlideShare
2,014
Embed Views
610

Actions

Likes
1
Downloads
9
Comments
0

15 Embeds 610

http://forumone.com 448
http://feedly.com 105
https://twitter.com 29
http://newsblur.com 6
http://www.inoreader.com 5
http://www.slideee.com 3
http://www.feedspot.com 3
http://www.newsblur.com 2
https://www.inoreader.com 2
http://digg.com 2
http://feed.webphp.com.br 1
http://news.google.com 1
http://trent.dyndns.info 1
http://drupalfanatics.com 1
http://f1.dev.forumone.com 1
More...

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Getting started with drupal 8 code Presentation Transcript

  • 1. GETTING STARTED WITH DRUPAL 8 CODE
  • 2. Environment Setup
  • 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. 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. 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. 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. Site Install
  • 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. Fix Some Issues
  • 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. 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. Configuration
  • 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. D8 Configuration SECTION TITLE ● Supports Import/Export of configuration ● Binary file imports or direct code paste ● Only supports configuration import from same site
  • 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. 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. THANK YOU! Keenan Holloway Senior Web Developer kholloway@forumone.com www.forumone.com