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

Post on 03-Jul-2020

10 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Integrating Drupaland Meteor.js

Mark Shropshire

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

Demos

• Node.js integration

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

Questions?

top related