Check your version

This video covers a topic in Drupal 7 which may or may not be the version you're using. We're keeping this tutorial online as a courtesy to users of Drupal 7, but we consider it archived.

Configure Your Node.js Application

Video loading...

Join Drupalize.Me to watch this video

Join today and gain instant access to our entire video library.

Log in Sign up
  • 0:03
    In this video, we're going to cover
  • 0:06
    enabling the Node.js Config module. We're going to spend
  • 0:08
    some time understanding the configuration options
  • 0:11
    available to us. We're then going to generate
  • 0:13
    a configuration file for our Node.js application. We'll edit that generated configuration
  • 0:17
    to get a basic working setup.
  • 0:19
    And finally, we'll start up our Node.js application.
  • 0:22
    So first of all, let's head over to our Drupal install and navigate to sites, all modules, node.js,
  • 0:30
    and open up the readme.txt in that directory. Now you'll see in the setup section it says
  • 0:35
    Install Node.js is step one. Step two, Install the required Node.js modules with the node package manager.

Configure Your Node.js Application

Loading...

Note: This video is out of date and will be archived. Check this page for instructions: Node.js integration documentation.

To be able to use the Node.js Integration module, you need to configure both a Node.js application, as well as the Drupal Node.js Integration module itself.

In this lesson, you will learn how to:

  • Enable the Node.js Config module
  • Understand of all of the configuration options
  • Generate a config file for our Node.js application
  • Edit the generated configuration for a basic working setup
  • Start the Node.js application

Self-check question: Did you remember to change the protocols array in your nodejs.config.js?

Additional resources: