node_chat

Categories

Component ID

2440879

Component name

node_chat

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

This is a chat module for general use, is based on a node express server that use socket.io like backend for the realtime comunication, you can download the backend server from here https://github.com/jmsv23/node-chat-server.

Features:

  • General chat for all users with the proper permission
  • Links translation
  • Emoji support http://emoji.codes/
  • XSS protection.

Install instructions:

  1. clone https://github.com/jmsv23/node-chat-server in you server
  2. Run the server with node, the default port is 3000 but you can change that in the config.json file, *see Forever to run node apps in production.*
  3. Install node_chat module in Drupal as a regular module.
  4. Go to admin/config/services/chat and fill the fields with the correct data of the node server
  5. Go to admin/people/permissions and set the permissions
  6. Download React add the library in sites/all/libraries/react/react.js
  7. Enjoy.

Customization:

  • To change the bahavior of the chat window you need react-tools
  • Navigate to the module folder and then run jsx watch javascript/jsx javascript
  • "React framework" knowledge are needed to change jsx/react_chat.js file
  • You also can modify the stylesheet to fill your needs