2. About me
Wolfgang Ziegler // fago
CEO / CTO of drunomics GmbH
Contributions
○ Drupal 8 Entity API & Typed Data API
○ Contrib: Rules, Entity API, Field
Collection, Profile2
Twitter: @the_real_fago
drupal.org/u/fago
8. ● like Vue.js: Easy to get started, performant & enjoyable!
● includes all needed for fully-fledged applications
○ Transpilation, CSS (Pre-)Processors
○ Routing, with automatic code splitting, …
● Mode: Single Page Application or Universal
● Deployment target: Server Side Rendered or Static
9. Architecture overview
GET /home GET drupal.site/home
Custom Elements
HTML
Server-Side-
Rendering
Subsequent
pages
GET drupal.site/article/example
Custom Elements
15. Menu integration
● composer require drupal/rest_menu_items
● Enable menu REST route, e.g. via Rest UI module
● Grant permissions to the REST menu items resource
● Enable menu fetching in Nuxt.js:
un-comment the nuxtServerInit action in store/init.js
18. Strategy
● Allow Cross-Origin-Requests (CORS) from the browser to Drupal
● Drupal backend needs to allow CORS from www.example.com
● Login at drupal.example.com
→ Cookie is set for drupal.example.com
● Optional: For SSR with authentication configure a shared cookie
domain e.g. .example.com for
drupal.example.com and www.example.com (Nuxt.js)