A simple Drupal distribution with node.js and chatroom integration.
Copy the distro.make file to your environment and build the code base using
drush_make.
$ drush make distro.make --working-copy distro.make public_html
Install Drupal as usual using the DrupalChat install profile.
-
cp /path/to/modules/nodejs/nodejs.server.extension.js.example /path/to/modules/nodejs/nodejs.server.extension.js -
In Drupal use the node.js configuration builder to create a
nodejs.config.jsfile. -
Administration->Configuration->Nodejs->Node.js server configuration builder
-
Set the correct backend
hostand add the extension nodejs.server.extension.js -
Save the configuration and copy the output from the Suggested Configuration field to
/path/to/modules/nodejs/nodejs.configure.js
-
On OSX use Homebrew.
$ brew install node -
npmis included in node.js > 0.6.0. -
$ cd /path/to/modules/nodejs -
$ npm install -
$ node server.js
-
On a content type add a Chatroom field.
-
Create new Chatroom content
- Field display not yet working.