integrating drupal and meteor.js...integrating drupal and meteor.js.key created date 2/23/2014...

19
Integrating Drupal and Meteor.js Mark Shropshire

Upload: others

Post on 03-Jul-2020

8 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Integrating Drupal and Meteor.js...Integrating Drupal and Meteor.js.key Created Date 2/23/2014 9:05:25 PM

Integrating Drupaland Meteor.js

Mark Shropshire

Page 3: Integrating Drupal and Meteor.js...Integrating Drupal and Meteor.js.key Created Date 2/23/2014 9:05:25 PM

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

Page 4: Integrating Drupal and Meteor.js...Integrating Drupal and Meteor.js.key Created Date 2/23/2014 9:05:25 PM

What’s Drupal?

and more…

A stack of technologies

Page 5: Integrating Drupal and Meteor.js...Integrating Drupal and Meteor.js.key Created Date 2/23/2014 9:05:25 PM

What’s Drupal?

• https://api.drupal.org

• Drupal Core

• Contributed modules, themes, etc.

• Fantastic community!

Page 6: Integrating Drupal and Meteor.js...Integrating Drupal and Meteor.js.key Created Date 2/23/2014 9:05:25 PM

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

Page 7: Integrating Drupal and Meteor.js...Integrating Drupal and Meteor.js.key Created Date 2/23/2014 9:05:25 PM

What’s Meteor?

and more…

A stack of technologies

Page 8: Integrating Drupal and Meteor.js...Integrating Drupal and Meteor.js.key Created Date 2/23/2014 9:05:25 PM

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 ]]]]]

Page 9: Integrating Drupal and Meteor.js...Integrating Drupal and Meteor.js.key Created Date 2/23/2014 9:05:25 PM

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

Page 10: Integrating Drupal and Meteor.js...Integrating Drupal and Meteor.js.key Created Date 2/23/2014 9:05:25 PM

Drupal Web Apps

Database Web serverData

ClientHTTP

Request

Page 11: Integrating Drupal and Meteor.js...Integrating Drupal and Meteor.js.key Created Date 2/23/2014 9:05:25 PM

Meteor Web Apps

Database Meteor serverData

Client

Initial package

Client

Polling

Data updates

Local DB write (sync)DB writes (async)

Page 12: Integrating Drupal and Meteor.js...Integrating Drupal and Meteor.js.key Created Date 2/23/2014 9:05:25 PM

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

Page 13: Integrating Drupal and Meteor.js...Integrating Drupal and Meteor.js.key Created Date 2/23/2014 9:05:25 PM

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

Page 14: Integrating Drupal and Meteor.js...Integrating Drupal and Meteor.js.key Created Date 2/23/2014 9:05:25 PM

Integration Methods

• REST APIs

• JSON, XML, etc.

• Ubiquitous

Page 15: Integrating Drupal and Meteor.js...Integrating Drupal and Meteor.js.key Created Date 2/23/2014 9:05:25 PM

Demos

• DDP Analyzer

• https://github.com/arunoda/meteor-ddp-analyzer

Page 16: Integrating Drupal and Meteor.js...Integrating Drupal and Meteor.js.key Created Date 2/23/2014 9:05:25 PM

Demos

• Drupal 7 services module (REST endpoint)

• https://drupal.org/project/services

Page 17: Integrating Drupal and Meteor.js...Integrating Drupal and Meteor.js.key Created Date 2/23/2014 9:05:25 PM

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

Page 18: Integrating Drupal and Meteor.js...Integrating Drupal and Meteor.js.key Created Date 2/23/2014 9:05:25 PM

Demos

• Node.js integration

• https://drupal.org/project/nodejs

Page 19: Integrating Drupal and Meteor.js...Integrating Drupal and Meteor.js.key Created Date 2/23/2014 9:05:25 PM

Questions?