Skip to main content

Posts

Showing posts from 2017

Drupal 7 integration with nodejs for realtime notificaiton

At the end of this blog you will be able to broadcast a real time notification to all loggedin user. As shown below I assume you know 1. how to setup drupal on your local machine 2. how to use drush 3. npm installed, if not refer  installing npm Step 1. Go to root of your drupal project and run following commands drush dl nodejs drush en -y nodejs nodejs_config nodejs_notify nodejs_actions nodejs_subscribe Here we are installing necessary modules. Step 2. Nodejs server required . To download run following commands git clone https://github.com/beejeebus/drupal-nodejs.git cd /var/www/drupal-nodejs npm install cp nodejs.config.js.example nodejs.config.js open the "nodejs.config.js" file in editor. Step 3. Open following url in browser. YOUR_VIRTUAL_HOST/admin/config/nodejs/js This will open configuration builder  UI. It will look like Exact configruation which worked for me * This configuration file was built us