Top Banner
Headful Drupal Théodore 'nod_' Biadala Core JS maintainer & Consultant @ Tag1
34

Headful drupal

Jan 20, 2017

Download

Technology

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Headful drupal

Headful Drupal

Théodore 'nod_' Biadala

Core JS maintainer & Consultant @ Tag1

Page 2: Headful drupal

Misery Misery

PainPain

Page 3: Headful drupal

CrazyCrazyDrupal7Drupal7

Page 4: Headful drupal

Headless DrupalHeadless DrupalBuzzword since 2014Buzzword since 2014

Page 5: Headful drupal

pantheon.io/blog/headless-websites-whats-big-dealpantheon.io/blog/headless-websites-whats-big-deal

Page 6: Headful drupal

pantheon.io/blog/headless-websites-whats-big-dealpantheon.io/blog/headless-websites-whats-big-deal

Page 7: Headful drupal

Headless Drupal ?Headless Drupal ?Frontend logic ? Frontend logic ? – Template rendering + routing– Template rendering + routing

Headless Admin UI ?Headless Admin UI ?– « We're not that dumb/rich »– « We're not that dumb/rich »

Business logic ? Business logic ? – Still in the backend– Still in the backend

Page 8: Headful drupal

Headless… notHeadless… not

Page 9: Headful drupal

Faceless Faceless drupal drupal

Page 10: Headful drupal

Insecure and not accessibleInsecure and not accessible

Page 11: Headful drupal

Ideally…Ideally…

Page 12: Headful drupal

M. Patate M. Patate drupal drupal M. Patate M. Patate drupal drupal

Page 13: Headful drupal

Web componentsWeb components

Page 14: Headful drupal
Page 15: Headful drupal
Page 16: Headful drupal
Page 17: Headful drupal

Headful DrupalHeadful Drupal

Helpful DrupalHelpful Drupal

Page 18: Headful drupal

HowHow

Page 19: Headful drupal

JSJS

Few assumptionsFavor native/VanillaJSTry to stay out of the way

Page 20: Headful drupal

ToolsTools

JSDoc

Page 21: Headful drupal

JSDocJSDoc

read.theodoreb.net/drupal-jsapi/

Page 22: Headful drupal

ISomorphicISomorphic

Page 23: Headful drupal

Shared JSShared JS

Page 24: Headful drupal

TestingTesting

Page 25: Headful drupal

Refactor of DOOMRefactor of DOOM

ES6ES6

Proper modulesProper modules

Separate initialization Separate initialization from declarationfrom declaration

Page 26: Headful drupal
Page 27: Headful drupal

ES6 : template strings

Page 28: Headful drupal

ES6 : modules

Page 29: Headful drupal

ES6 : Promise

Page 30: Headful drupal

Websocket

Page 31: Headful drupal

#Driesnote

GraphQL

“Progressive decoupling”

Page 32: Headful drupal

Discuss!

Théodore BIADALA

@nod_

[email protected]

Page 33: Headful drupal

“Broken Glass” — Sonny Abesamis

Page 34: Headful drupal

faceless Drupal

slideshare.net/exove/building-a-nodejs-accelerator-for-your-headless-drupal-backend-drupalcamp-london-2015