Integrating Drupal with Software Developers Assistance (SDA)
Integrating Drupal and Meteor.js...Integrating Drupal and Meteor.js.key Created Date 2/23/2014...
Transcript of Integrating Drupal and Meteor.js...Integrating Drupal and Meteor.js.key Created Date 2/23/2014...
Integrating Drupaland Meteor.js
Mark Shropshire
Mark Shropshirehttp://mark.shropshires.net
z
l@shrop @shrop
/shrop /user/14767
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
What’s Drupal?
and more…
A stack of technologies
What’s Drupal?
• https://api.drupal.org
• Drupal Core
• Contributed modules, themes, etc.
• Fantastic community!
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
What’s Meteor?
and more…
A stack of technologies
What’s Meteor?CLI tool: meteor
meteor create myNewAppmyNewApp: created.!To run your new app: cd myNewApp meteor
cd myNewAppmeteor
=> Meteor server running on: http://localhost:3000/
$
$$
[[[[[ ~/Sites/myNewApp ]]]]]
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
Drupal Web Apps
Database Web serverData
ClientHTTP
Request
Meteor Web Apps
Database Meteor serverData
Client
Initial package
Client
Polling
Data updates
Local DB write (sync)DB writes (async)
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
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
Integration Methods
• REST APIs
• JSON, XML, etc.
• Ubiquitous
Demos
• DDP Analyzer
• https://github.com/arunoda/meteor-ddp-analyzer
Demos
• Drupal 7 services module (REST endpoint)
• https://drupal.org/project/services
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
Questions?