Git Product home page Git Product logo

node_to_drupal's Introduction

#node_to_drupal

####This module is not functionally useful at all, and is intended only as an example.

Node_to_drupal is an example module to demonstrate the nodejs integration module's ability to send a message from a node server extension back to Drupal. This functionality is demonstrated by generating a simple form page using standard Drupal procedures. This page loads a bit of client side JavaScript that will emit a simple message to the node server upon form submission. A server extension then listens for this message and forwards it on to Drupal. From here, Drupal makes a simple watchdog entry stating the message was received and relates the same back to the node server.

For a more detailed description on this demonstration module, check out Talking to Drupal with NodeJS. The example code in that post is taken directly from this module.

##Installation

  • You will of course need the nodejs module installed configured and enabled.
  • As an added bonus enable nodejs_notify (included with the nodejs module) to allow client side notifications upon success.

####When configuring nodejs module be sure to have these settings as follows: clientsCanWriteToClients: true extensions: ['../node_to_drupal/node_to_drupal.server.extension.js']

node_to_drupal's People

Contributors

rh0 avatar

Stargazers

 avatar Kunal Singh avatar Heshan Wanigasooriya avatar Mark Shropshire avatar Mike avatar Peter Macinkovic avatar Arnstein Henriksen avatar André Ascensão avatar JT5D avatar

Watchers

Arnstein Henriksen avatar Mike avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.