GithubHelp home page GithubHelp logo

rh0 / swapit_demo Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 1.0 113 KB

Simple demonstration of using nodeJS integration module in custom Drupal modules.

License: GNU General Public License v2.0

PHP 92.15% JavaScript 7.85%

swapit_demo's Introduction

#SwapIt Demonstration

This module is a simple demonstration of how to build a custom module utilizing the nodeJS integration module. For more information on how this module works check out Module Development with Drupal and NodeJS. The example code in the post is taken directly from this module.

##Setup

  1. Install and enable the nodejs integration module along with the appropriate node server configuration.
  2. Enable the swapit demonstration module.
  3. Make sure your node server is running.
  4. Go to mysite.com/swap and check it out! Use a couple of sessions to see the node-ey goodness.

swapit_demo's People

Contributors

rh0 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

mnishihan

swapit_demo's Issues

swapit_demo_swap_submit called twice?

hi this has been really helpful getting me started many thanks. for reasons i dont understand the swapit_demo_swap_submit function is called twice. i only discovered this after adding a drupal message to the function... any ideas why it is being called twice, and how i can change it to (correctly i think) execute only once? many thanks.

drupal 8 version

as this is appears to be the only published example of how to use nodejs integration module is the any possibility to port this over to drupal 8?

thanks

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.