Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Integrating Drupal and Meteor.js

Integrating Drupal and Meteor.js

This talk is a work in progress and will hopefully be accepted at Drupalcon Austin 2014. I presented this initially at the Charlotte Drupal Drive-in.

Mark Shropshire

February 22, 2014
Tweet

More Decks by Mark Shropshire

Other Decks in Technology

Transcript

  1. What’s Drupal? “Drupal is a free software package that allows

    you to easily organize, manage and publish your content, with an endless variety of customization.” http://drupal.org/about
  2. What’s Meteor? “Meteor is an open-source platform for building top-

    quality web apps in a fraction of the time, whether you're an expert developer or just getting started.” http://meteor.com
  3. What’s Meteor? CLI tool: meteor meteor create myNewApp myNewApp: created.

    ! To run your new app: cd myNewApp meteor cd myNewApp meteor => Meteor server running on: http://localhost:3000/ $ $ $ [[[[[ ~/Sites/myNewApp ]]]]]
  4. What’s Meteor? • http://docs.meteor.com/#api • Node Fibers • DDP (Distributed

    Data Protocol) • Works identically in the browser
 and on the server (when possible) A wonderful API
  5. Meteor Web Apps Database Meteor server Data Client Initial package

    Client Polling Data updates Local DB write (sync) DB writes (async)
  6. Why Integrate 
 Drupal and Meteor? • Single sign-on/shared user

    and profile data • Manage content in Meteor apps with Drupal • Create content in Drupal and end-users view content on a Meteor instance
  7. Integration Methods • Distributed Data Protocol (DDP) • RPC from

    client to server • Client subscriptions to sets of documents • JSON objects/EJSON field specifications • Introducing DDP • DDP Specificaiton
  8. Demos • Meteor/Drupal smart package/module • Integration between Drupal and

    Meteor with DDP • http://beta.atmospherejs.com/package/drupal • https://github.com/wizonesolutions/drupal- meteor-signup