Drupal 8 + Angularjs, Rockstar Duo!

 

@tatewaky

outerspacecoders.com/jason-acuna

drupal.org

 

 

 

 

HEADLESS DRUPAL WHAT IS IT?

it is...

  • a system that integrates all data in one place making the information provided available to any system that will work as front-end.


  • there are several types of applications that can be considered Headless Drupal, some examples are mobiles, frontend frameworks, including drush.


  • Headless Drupal, is not the new way to do drupal, is just one of them.



Advantages

 

  • More control over the front end.

 

  • it separate the updates on the front end to use new tachnologies.

 

  • it allows Drupal to be used as part of the stack and not as every single layer.

 

  • We can use the support that drupal content types provide to easily be integrated with any of those systems. 

Disadvantage

 

  • We lost some tools functionalities that drupal provides, such as frameworks, and responsive methodologies we already have in place.

 

  • We have to create the Model twice, once in drupal, and one more in the app. (content types, other structure).

 

  • We have to split our team, drupal experts, app experts.

AngularJS

 

It is a javascript framework support by google, open-sourced, and they describe themselfs as  MVW (model view whatever works for you) .

RESTful is on core

  • Exposes entities and other resources via a RESTful web API. It depends on the Serialization module for the serialization of data that is sent to and from the API.

 

  • Serialization: Provides a service for serialization of data to and from formats such as JSON and XML.
  • Hypertext Application Language (hal): Extends the Serialization module to provide the HAL hypermedia format. This is what is used as the primary format in Drupal 8 Core.
  • HTTP Basic Authentication (basic_auth): This module implements basic user authentication using the HTTP Basic authentication provider. It faciliates the use of an username and password for authentication when making calls to the REST API.

​

Why angularJS?

  • Two-way data binding.  simple words, when the model changes, the view changes, and also the other way around.
  • dependency injection:  all dependencies that we need will be provided on the modules provided by angular.

 

  • Popularity and cool stuff.

8.0.0-beta15 - 2015-Sep-04

https://www.drupal.org/node/3060/release

 

REST UI

https://www.drupal.org/project/restui

 

Cors-drupal8

https://github.com/Brolag/cors-drupal8

WHAT WE WILL BE USING ON THIS PROJECT?

NERDSummit 2015

By Jason Acuna

NERDSummit 2015

  • 906