New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

drupal-node.js

Package Overview
Dependencies
Maintainers
3
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

drupal-node.js

Push notifications from Drupal.

unpublished
latest
Source
npmnpm
Version
1.0.13
Version published
Maintainers
3
Created
Source

Node.js Integration for Drupal

Server app for the Node.js Integration Drupal module. https://www.drupal.org/project/nodejs

Prerequisites

  • Node.js version 10+
  • Forever (optional)

Installation

Use one of the following two methods to download the app:

  • Install using NPM by running npm install drupal-node.js. Note that the app will be installed in the node_modules subdirectory

  • Download the latest release from GitHub. Unzip, and run npm install in the app's directory to install the dependencies

In both cases, be sure the install the app outside of Drupal's root directory.

Configuration

Copy the example configuration file (nodejs.config.js.example) to nodejs.config.js. Edit that file and make any necessary configuration changes. See nodejs.config.js.example for details on the configuration values. As a minimum, you will need to set the serviceKey, and specify the location of your Drupal site in the backend property. The service key can be any arbitrary string, but be sure to enter the same service key in Drupal.

HTTPS

If you set scheme: 'https' you will need to set sslKeyPath and sslCertPath

Running the server app

Start the app using the node command.

node app.js

This will run the app in the foreground. For production use, it is more practical to run the app in the background. One way to achieve this is starting the app with forever.

forever start app.js

Not only will forever start the app in the background, but it will monitor it and automatically restart it if the app quits.

Visit the status report on your Drupal site to verify if Drupal is able to communicate with the server app.

FAQs

Package last updated on 26 Jul 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts