GithubHelp home page GithubHelp logo

dgastudio / drupal-nodejs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vielsoft/drupal-nodejs

0.0 0.0 0.0 259 KB

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

License: GNU General Public License v2.0

JavaScript 100.00%

drupal-nodejs's Introduction

Node.js Integration for Drupal

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

Prerequisites

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.

drupal-nodejs's People

Contributors

beejeebus avatar gagathos avatar glekli avatar uniquename 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.